As per automake manual[1], DIST_SUBDIRS should be used to recurse into
the subdirectories those we want to ship as part of make dist and use
SUBDIRS for conditionally building the directories. Adopt this rule
across the source.
[1] https://www.gnu.org/software/automake/manual/html_node/SUBDIRS-vs-DIST_005fSUBDIRS.html
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS= -I m4
-SUBDIRS = dist doc include samples scripts src
-if WITH_TESTS
-SUBDIRS += tests
-endif
+DIST_SUBDIRS = dist doc include scripts src tests samples
+SUBDIRS = $(DIST_SUBDIRS)
EXTRA_DIST = README_daemon libcgroup.doxyfile README_systemd CONTRIBUTING.md
-SUBDIRS = man
+DIST_SUBDIRS = man
+SUBDIRS = $(DIST_SUBDIRS)
-SUBDIRS = config c
+DIST_SUBDIRS = config c
+SUBDIRS = $(DIST_SUBDIRS)
BUILT_SOURCES = parse.c parse.h
+DIST_SUBDIRS = . daemon pam tools python
SUBDIRS = . daemon pam tools
if ENABLE_PYTHON
SUBDIRS += python