Keep the progress/cancel toolbar permanently visible
[entangle:entangle.git] / Makefile.am
1
2 SUBDIRS = src po docs
3
4 ACLOCAL_AMFLAGS = -I m4
5
6 # XXX figure out why these aren't detected by git.mk
7 GITIGNOREFILES = \
8         aclocal.m4 \
9         entangle-*.tar.gz \
10         compile \
11         config.guess \
12         config.h.in \
13         config.sub \
14         depcomp \
15         install-sh \
16         missing \
17         ltmain.sh \
18         gtk-doc.make \
19         m4/gtk-doc.m4 \
20         m4/libtool.m4 \
21         m4/ltversion.m4 \
22         m4/ltoptions.m4 \
23         m4/ltsugar.m4 \
24         m4/lt~obsolete.m4 \
25         INSTALL
26
27 EXTRA_DIST = \
28         $(PACKAGE).spec \
29         $(PACKAGE).spec.in \
30         GNUmakefile \
31         cfg.mk \
32         AUTHORS.in \
33         maint.mk \
34         $(NULL)
35
36 MAINTAINERCLEANFILES = ChangeLog AUTHORS
37
38 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
39
40 dist-hook: gen-ChangeLog gen-AUTHORS
41
42 .PHONY: gen-ChangeLog gen-AUTHORS
43 gen-ChangeLog:
44         if test -d .git; then                                   \
45           $(top_srcdir)/build-aux/gitlog-to-changelog           \
46             > $(distdir)/cl-t;                                  \
47           rm -f $(distdir)/ChangeLog;                           \
48           mv $(distdir)/cl-t $(distdir)/ChangeLog;              \
49         fi
50
51 gen-AUTHORS:
52         $(AM_V_GEN)if test -d $(srcdir)/.git; then                      \
53           out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \
54           perl -p -e "s/#authorslist#// and print '$$out'"            \
55             < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp &&        \
56           mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ;           \
57         fi
58
59 -include $(top_srcdir)/git.mk