Updated DEB and RPM versions to use 3 number versions
[barry.git] / Makefile.am
blob7a7c73d7340d57b855b391696215e85da6ac2baf
1 DISTCHECK_CONFIGURE_FLAGS = --enable-gui --enable-opensync-plugin --enable-opensync-plugin-4x
3 ACLOCAL_FLAGS = -I m4
4 ACLOCAL_AMFLAGS = -I m4
6 EXTRA_DIST = COPYING ChangeLog README Doxyfile \
7         buildgen.sh \
8         data \
9         doc \
10         hotplug \
11         maintainer \
12         modprobe \
13         ppp \
14         rpm \
15         test \
16         udev
18 SUBDIRS = po . src tools examples man
19 # conditionally configured nested subdirectories are listed in $(subdirs)
20 SUBDIRS += $(subdirs)
22 pkgconfig_DATA = libbarry-0.pc libbarrydp-0.pc libbarryjdwp-0.pc
23 if WITH_SYNC
24 pkgconfig_DATA += libbarrysync-0.pc
25 endif
26 if WITH_BACKUP
27 pkgconfig_DATA += libbarrybackup-0.pc
28 endif
30 all-local:
31         rm -f $(top_builddir)/barry
32         ln -s $(top_srcdir)/src $(top_builddir)/barry
34 clean-local:
35         rm -f $(top_builddir)/barry
37 # these directories will be tested for during make dist to warn if they are
38 # missing - a new nested package should be added both here and in configure.ac
39 CONDITIONAL_SUBDIRS = gui opensync-plugin opensync-plugin-0.4x
40 dist-hook:
41         rm -rf `find $(distdir) -name CVS`
42         @for subdir in $(CONDITIONAL_SUBDIRS); do \
43                 if test ! -d $(distdir)/$$subdir; then \
44                         if test -z "$$MISSING_DIRS"; then \
45                                 echo "###############################################################################"; \
46                                 MISSING_DIRS="--enable-$$subdir"; \
47                         else \
48                                 MISSING_DIRS="$$MISSING_DIRS --enable-$$subdir"; \
49                          fi; \
50                         echo "ERROR: The $$subdir subdirectory has been omitted!"; \
51                 else :; fi; \
52         done; \
53         if test -n "$$MISSING_DIRS"; then \
54                 echo ; \
55                 echo "rerun configure with $$MISSING_DIRS before running make dist"; \
56                 echo "###############################################################################"; \
57                 exit 1; \
58         else :; fi;