Bug 629084 — Add a folks-import tool
[platform/upstream/folks.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = \
4         folks \
5         backends \
6         tests \
7         tools \
8         $(NULL)
9
10 if ENABLE_DOCS
11 SUBDIRS += docs
12 endif
13
14 DISTCHECK_CONFIGURE_FLAGS = --enable-docs
15
16 EXTRA_DIST = \
17         autogen.sh \
18         $(NULL)
19
20 MAINTAINERCLEANFILES = \
21         $(srcdir)/INSTALL \
22         $(srcdir)/aclocal.m4 \
23         $(srcdir)/compile \
24         $(srcdir)/config.guess \
25         $(srcdir)/config.h.in \
26         $(srcdir)/config.sub \
27         $(srcdir)/depcomp \
28         $(srcdir)/install-sh \
29         $(srcdir)/ltmain.sh \
30         $(srcdir)/missing \
31         $(srcdir)/mkinstalldirs \
32         $(srcdir)/ChangeLog \
33         `find "$(srcdir)" -type f -name Makefile.in -print`
34
35 distclean-local:
36         if test "x$(srcdir)" = "x."; then :; else \
37                 rm -f ChangeLog; \
38         fi
39
40 ChangeLog:
41         @echo Creating $@
42         @if test -d "$(srcdir)/.git"; then \
43           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
44           && mv -f $@.tmp $@ \
45           || ($(RM) $@.tmp; \
46               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
47               (test -f $@ || echo git-log is required to generate this file >> $@)); \
48         else \
49           test -f $@ || \
50           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
51           echo A git checkout and git-log is required to generate this file >> $@); \
52         fi
53
54 .PHONY: ChangeLog
55
56 -include $(top_srcdir)/git.mk