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.
This commit is contained in:
Bruno BELANYI 2020-09-27 21:31:16 +02:00
parent b9f950008c
commit 1cb15360c4
2 changed files with 11 additions and 9 deletions

View file

@ -1,15 +1,8 @@
NULL = 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 files to include in 'make dist'
EXTRA_DIST = \ EXTRA_DIST = \
bootstrap \ bootstrap \
$(NULL) $(NULL)
include %D%/src/local.am

9
src/local.am Normal file
View file

@ -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)