Added DISTCHECK_CONFIGURE_FLAGS to root Makefile.am
[barry/pauldeden.git] / Makefile.am
blob208d457f4f9ab0400ff291750806d11cff66425a
1 DISTCHECK_CONFIGURE_FLAGS = --enable-gui --enable-opensync-plugin
3 ACLOCAL_FLAGS = -I m4
5 EXTRA_DIST = COPYING ChangeLog README \
6         buildgen.sh \
7         data \
8         doc \
9         hotplug \
10         maintainer \
11         rpm \
12         udev \
13         modprobe
15 SUBDIRS = . src tools examples man
16 # conditionally configured nested subdirectories are listed in $(subdirs)
17 SUBDIRS += $(subdirs)
19 pkgconfig_DATA = libbarry-0.pc
21 all-local:
22         rm -f $(top_builddir)/barry
23         ln -s $(top_srcdir)/src $(top_builddir)/barry
25 clean-local:
26         rm -f $(top_builddir)/barry
28 # these directories will be tested for during make dist to warn if they are
29 # missing - a new nested package should be added both here and in configure.ac
30 CONDITIONAL_SUBDIRS = gui opensync-plugin
31 dist-hook:
32         rm -rf `find $(distdir) -name CVS`
33         @for subdir in $(CONDITIONAL_SUBDIRS); do \
34                 if test ! -d $(distdir)/$$subdir; then \
35                         if test -z "$$MISSING_DIRS"; then \
36                                 echo "###############################################################################"; \
37                                 MISSING_DIRS="--enable-$$subdir"; \
38                         else \
39                                 MISSING_DIRS="$$MISSING_DIRS --enable-$$subdir"; \
40                          fi; \
41                         echo "ERROR: The $$subdir subdirectory has been omitted!"; \
42                 else :; fi; \
43         done; \
44         if test -n "$$MISSING_DIRS"; then \
45                 echo ; \
46                 echo "rerun configure with $$MISSING_DIRS before running make dist"; \
47                 echo "###############################################################################"; \
48                 exit 1; \
49         else :; fi;