lib: use the parser/builder macros for Desktop::Load/SaveDatabaseByName
[barry/progweb.git] / Makefile.am
blob3595eb9228d6457227854db507327c83ee9ab385
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         android \
24         .gitignore
26 SUBDIRS = po . src tools examples man test
27 # conditionally configured nested subdirectories are listed in $(subdirs)
28 SUBDIRS += $(subdirs)
30 pkgconfig_DATA = libbarry-0.pc libbarrydp-0.pc libbarryjdwp-0.pc
31 if WITH_SYNC
32 pkgconfig_DATA += libbarrysync-0.pc
33 endif
34 if WITH_BACKUP
35 pkgconfig_DATA += libbarrybackup-0.pc
36 endif
37 if WITH_ALX
38 pkgconfig_DATA += libbarryalx-0.pc
39 endif
41 VERSIONED_INCLUDE = barry@BARRY_MAJOR@
43 all-local:
44         rm -f $(top_builddir)/barry $(top_builddir)/$(VERSIONED_INCLUDE)
45         ln -fs $(top_srcdir)/src $(top_builddir)/barry
46         ln -fs $(top_builddir) $(top_builddir)/$(VERSIONED_INCLUDE)
48 clean-local:
49         rm -f $(top_builddir)/barry $(top_builddir)/$(VERSIONED_INCLUDE)
51 # these directories will be tested for during make dist to warn if they are
52 # missing - a new nested package should be added both here and in configure.ac
53 CONDITIONAL_SUBDIRS = gui opensync-plugin opensync-plugin-0.4x desktop
54 dist-hook:
55         rm -rf `find $(distdir) -name CVS`
56         @for subdir in $(CONDITIONAL_SUBDIRS); do \
57                 if test ! -d $(distdir)/$$subdir; then \
58                         if test -z "$$MISSING_DIRS"; then \
59                                 echo "###############################################################################"; \
60                                 MISSING_DIRS="--enable-$$subdir"; \
61                         else \
62                                 MISSING_DIRS="$$MISSING_DIRS --enable-$$subdir"; \
63                          fi; \
64                         echo "ERROR: The $$subdir subdirectory has been omitted!"; \
65                 else :; fi; \
66         done; \
67         if test -n "$$MISSING_DIRS"; then \
68                 echo ; \
69                 echo "rerun configure with $$MISSING_DIRS before running make dist"; \
70                 echo "###############################################################################"; \
71                 exit 1; \
72         else :; fi;