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