From 1cb15360c44186ab492c5af16618e149cce18c9e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 27 Sep 2020 21:31:16 +0200 Subject: [PATCH] build: include directory-local automake files Since we're using recursive automake, let's use it to make the configuration a bit easier: by including a `local.am` file for each directory in our file hierarchy, we can reduce the amount of complexity in each file. --- Makefile.am | 11 ++--------- src/local.am | 9 +++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 src/local.am diff --git a/Makefile.am b/Makefile.am index 1ab298e..6443de3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,15 +1,8 @@ NULL = -# Program and sources -bin_PROGRAMS = jitters -jitters_SOURCES = \ - src/jitters.c \ - $(NULL) - -# Add warnings -jitters_CFLAGS = $(WARN_CFLAGS) -jitters_LDFLAGS = $(WARN_LDFLAGS) # Extra files to include in 'make dist' EXTRA_DIST = \ bootstrap \ $(NULL) + +include %D%/src/local.am diff --git a/src/local.am b/src/local.am new file mode 100644 index 0000000..dce6ca7 --- /dev/null +++ b/src/local.am @@ -0,0 +1,9 @@ +# Program and sources +bin_PROGRAMS = jitters +jitters_SOURCES = \ + %D%/jitters.c \ + $(NULL) + +# Add warnings +jitters_CFLAGS = $(WARN_CFLAGS) +jitters_LDFLAGS = $(WARN_LDFLAGS)