[build] Let "make distcheck" work again
[adg.git] / Makefile.am
blob3014a904f6252b619c17cbfd460070d52299aee8
1 include $(top_srcdir)/build/Makefile.am.common
3 xml2txt_stylesheet=             $(srcdir)/docs/gnu/docbook2txt.xsl
4 xml2txt_command=                $(MSG_GEN) ; \
5                                 if test -x $(XSLTPROC) ; then : ; else \
6                                   echo ' *WARN  libxslt-1.0.19 or later is required to generate $@' ; \
7                                   touch $@ ; \
8                                   exit 0 ; \
9                                 fi ; \
10                                 $(XSLTPROC) --novalid -o $@ $(xml2txt_stylesheet)
11 ACLOCAL_AMFLAGS=                -I build
12 DISTCHECK_CONFIGURE_FLAGS=      --enable-gtk-doc
14 BUILT_SOURCES=                  ChangeLog \
15                                 README \
16                                 NEWS \
17                                 TODO \
18                                 CONTRIBUTING
20 EXTRA_DIST=                     COPYING \
21                                 ChangeLog-0.2.1 \
22                                 INSTALL \
23                                 THANKS \
24                                 adg.doap \
25                                 $(BUILT_SOURCES)
27 SUBDIRS=                        cpml \
28                                 adg \
29                                 demo \
30                                 docs \
31                                 po \
32                                 po-properties
35 # Creating ChangeLog files from git log:
36 # idea stolen from cairo/build/Makefile.am.changelog
37 ChangeLog:
38         $(MSG_GEN) ; \
39         if test -d "$(srcdir)/.git"; then \
40           ( cd "$(srcdir)" && git log --stat > $@ ) ; \
41         else \
42           echo ' *WARN  A git checkout is required to generate $@' ; \
43           touch $@ ; \
44         fi
46 # Autogenerated text docs
47 README: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/README.xml
48         $(xml2txt_command) $(srcdir)/docs/gnu/README.xml
50 NEWS: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/NEWS.xml
51         $(xml2txt_command) $(srcdir)/docs/gnu/NEWS.xml
53 TODO: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/TODO.xml
54         $(xml2txt_command) $(srcdir)/docs/gnu/TODO.xml
56 CONTRIBUTING: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/CONTRIBUTING.xml
57         $(xml2txt_command) $(srcdir)/docs/gnu/CONTRIBUTING.xml