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