Don't delete in-tree m4 macros when doing maintainer-clean
[platform/upstream/folks.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = \
4         folks \
5         backends \
6         tests \
7         tools \
8         po \
9         $(NULL)
10
11 if HAVE_VALADOC
12 SUBDIRS += docs
13 endif
14
15 DISTCHECK_CONFIGURE_FLAGS = \
16         --enable-docs \
17         --disable-vala \
18         $(NULL)
19
20 EXTRA_DIST = \
21         ABOUT-NLS \
22         autogen.sh \
23         po/Makevars.template \
24         po/Rules-quot \
25         po/boldquot.sed \
26         po/en@boldquot.header \
27         po/en@quot.header \
28         po/insert-header.sin \
29         po/quot.sed \
30         po/remove-potcdate.sin \
31         $(NULL)
32
33 MAINTAINERCLEANFILES = \
34         ABOUT-NLS \
35         $(srcdir)/INSTALL \
36         $(srcdir)/aclocal.m4 \
37         $(srcdir)/compile \
38         $(srcdir)/config.guess \
39         $(srcdir)/config.h.in \
40         $(srcdir)/config.rpath \
41         $(srcdir)/config.sub \
42         $(srcdir)/depcomp \
43         $(srcdir)/install-sh \
44         $(srcdir)/ltmain.sh \
45         $(srcdir)/missing \
46         $(srcdir)/mkinstalldirs \
47         $(srcdir)/ChangeLog \
48         `find "$(srcdir)" -type f -name Makefile.in -print` \
49         `find "m4" -type f -name "*.m4" ! -name "as-compiler-flag.m4" ! -name "introspection.m4" ! -name "vala.m4" -print` \
50         po/Makevars.template \
51         po/Rules-quot \
52         po/boldquot.sed \
53         po/en@boldquot.header \
54         po/en@quot.header \
55         po/insert-header.sin \
56         po/missing \
57         po/quot.sed \
58         po/remove-potcdate.sin \
59         $(NULL)
60
61 distclean-local:
62         if test "x$(srcdir)" = "x."; then :; else \
63                 rm -f ChangeLog; \
64         fi
65
66 ChangeLog:
67         @echo Creating $@
68         @if test -d "$(srcdir)/.git"; then \
69           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
70           && mv -f $@.tmp $@ \
71           || ($(RM) $@.tmp; \
72               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
73               (test -f $@ || echo git-log is required to generate this file >> $@)); \
74         else \
75           test -f $@ || \
76           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
77           echo A git checkout and git-log is required to generate this file >> $@); \
78         fi
79
80 .PHONY: ChangeLog
81
82 -include $(top_srcdir)/git.mk