maint: change script shebang to use bash explicitly and avoid the dash menace
[barry/progweb.git] / Makefile.am
blobd28a6a8cf99d4004086917516d0eea5cd3f2f8e1
1 DISTCHECK_CONFIGURE_FLAGS = --enable-gui --enable-opensync-plugin --enable-opensync-plugin-4x --enable-desktop
3 ACLOCAL_FLAGS = -I m4
4 ACLOCAL_AMFLAGS = -I m4
6 EXTRA_DIST = COPYING ChangeLog README Doxyfile AUTHORS DEPUTY \
7         buildgen.sh \
8         data \
9         doc \
10         hotplug \
11         maintainer \
12         modprobe \
13         ppp \
14         rpm \
15         udev \
16         bash \
17         zsh \
18         hal \
19         logo \
20         contrib \
21         menu \
22         usbmon-6 \
23         .gitignore
25 SUBDIRS = po . src tools examples man test
26 # conditionally configured nested subdirectories are listed in $(subdirs)
27 SUBDIRS += $(subdirs)
29 pkgconfig_DATA = libbarry-0.pc libbarrydp-0.pc libbarryjdwp-0.pc
30 if WITH_SYNC
31 pkgconfig_DATA += libbarrysync-0.pc
32 endif
33 if WITH_BACKUP
34 pkgconfig_DATA += libbarrybackup-0.pc
35 endif
36 if WITH_ALX
37 pkgconfig_DATA += libbarryalx-0.pc
38 endif
40 VERSIONED_INCLUDE = barry@BARRY_MAJOR@
42 all-local:
43         rm -f $(top_builddir)/barry $(top_builddir)/$(VERSIONED_INCLUDE)
44         ln -s $(top_srcdir)/src $(top_builddir)/barry
45         ln -s $(top_builddir) $(top_builddir)/$(VERSIONED_INCLUDE)
47 clean-local:
48         rm -f $(top_builddir)/barry $(top_builddir)/$(VERSIONED_INCLUDE)
50 # these directories will be tested for during make dist to warn if they are
51 # missing - a new nested package should be added both here and in configure.ac
52 CONDITIONAL_SUBDIRS = gui opensync-plugin opensync-plugin-0.4x desktop
53 dist-hook:
54         rm -rf `find $(distdir) -name CVS`
55         @for subdir in $(CONDITIONAL_SUBDIRS); do \
56                 if test ! -d $(distdir)/$$subdir; then \
57                         if test -z "$$MISSING_DIRS"; then \
58                                 echo "###############################################################################"; \
59                                 MISSING_DIRS="--enable-$$subdir"; \
60                         else \
61                                 MISSING_DIRS="$$MISSING_DIRS --enable-$$subdir"; \
62                          fi; \
63                         echo "ERROR: The $$subdir subdirectory has been omitted!"; \
64                 else :; fi; \
65         done; \
66         if test -n "$$MISSING_DIRS"; then \
67                 echo ; \
68                 echo "rerun configure with $$MISSING_DIRS before running make dist"; \
69                 echo "###############################################################################"; \
70                 exit 1; \
71         else :; fi;