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