Soften the valadoc requirement, even with --enable-docs.
[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 = --enable-docs
16
17 EXTRA_DIST = \
18         ABOUT-NLS \
19         autogen.sh \
20         po/Makevars.template \
21         po/Rules-quot \
22         po/boldquot.sed \
23         po/en@boldquot.header \
24         po/en@quot.header \
25         po/insert-header.sin \
26         po/quot.sed \
27         po/remove-potcdate.sin \
28         $(NULL)
29
30 MAINTAINERCLEANFILES = \
31         ABOUT-NLS \
32         $(srcdir)/INSTALL \
33         $(srcdir)/aclocal.m4 \
34         $(srcdir)/compile \
35         $(srcdir)/config.guess \
36         $(srcdir)/config.h.in \
37         $(srcdir)/config.rpath \
38         $(srcdir)/config.sub \
39         $(srcdir)/depcomp \
40         $(srcdir)/install-sh \
41         $(srcdir)/ltmain.sh \
42         $(srcdir)/missing \
43         $(srcdir)/mkinstalldirs \
44         $(srcdir)/ChangeLog \
45         `find "$(srcdir)" -type f -name Makefile.in -print` \
46         `find "m4" -type f -name "*.m4" -print` \
47         po/Makevars.template \
48         po/Rules-quot \
49         po/boldquot.sed \
50         po/en@boldquot.header \
51         po/en@quot.header \
52         po/insert-header.sin \
53         po/missing \
54         po/quot.sed \
55         po/remove-potcdate.sin \
56         $(NULL)
57
58 distclean-local:
59         if test "x$(srcdir)" = "x."; then :; else \
60                 rm -f ChangeLog; \
61         fi
62
63 ChangeLog:
64         @echo Creating $@
65         @if test -d "$(srcdir)/.git"; then \
66           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
67           && mv -f $@.tmp $@ \
68           || ($(RM) $@.tmp; \
69               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
70               (test -f $@ || echo git-log is required to generate this file >> $@)); \
71         else \
72           test -f $@ || \
73           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
74           echo A git checkout and git-log is required to generate this file >> $@); \
75         fi
76
77 .PHONY: ChangeLog
78
79 -include $(top_srcdir)/git.mk