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