build: included xml handcrafted docs in dist
[adg.git] / Makefile.am
blobdfcd524fd41824a841972fb0e0a3433bfc83a641
1 include $(top_srcdir)/build/Makefile.am.common
3 xml2txt_stylesheet=             $(srcdir)/docs/common/docbook2txt.xsl
4 xml2txt_command=                $(AM_V_GEN)if test -x $(XSLTPROC) ; then : ; else \
5                                   echo ' *WARN  libxslt-1.0.19 or later is required to generate $@' ; \
6                                   touch $@ ; \
7                                   exit 0 ; \
8                                 fi ; \
9                                 $(XSLTPROC) --novalid -o $@ $(xml2txt_stylesheet)
10 ACLOCAL_AMFLAGS=                -I build
11 DISTCHECK_CONFIGURE_FLAGS=      --enable-pango \
12                                 --enable-gtk-doc \
13                                 --enable-test-framework \
14                                 --enable-introspection \
15                                 --with-gtk \
16                                 --with-glade-catalogdir
18 BUILT_SOURCES=                  ChangeLog \
19                                 README \
20                                 NEWS \
21                                 TODO \
22                                 CONTRIBUTING \
23                                 HACKING
25 EXTRA_DIST=                     COPYING \
26                                 ChangeLog-0.2.1 \
27                                 INSTALL \
28                                 THANKS \
29                                 adg.doap \
30                                 build/configure-mingw \
31                                 docs/gnu/CONTRIBUTING.xml \
32                                 docs/gnu/HACKING.xml \
33                                 docs/gnu/NEWS.xml \
34                                 docs/gnu/README.xml \
35                                 docs/gnu/TODO.xml \
36                                 $(BUILT_SOURCES)
37 CLEANFILES=                     test-report.xml \
38                                 test-report.html \
39                                 perf-report.xml \
40                                 perf-report.html \
41                                 full-report.xml \
42                                 full-report.html
44 SUBDIRS=                        src \
45                                 demo \
46                                 po \
47                                 po-properties \
48                                 docs
51 # Creating ChangeLog files from git log:
52 # idea stolen from cairo/build/Makefile.am.changelog
53 ChangeLog:
54         $(AM_V_GEN)if test -d "$(srcdir)/.git"; then \
55           ( cd "$(srcdir)" && git log --stat > $@ ) ; \
56         else \
57           echo ' *WARN  A git checkout is required to generate $@' ; \
58           touch $@ ; \
59         fi
61 # Autogenerated text docs
62 README: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/README.xml
63         $(xml2txt_command) $(srcdir)/docs/gnu/README.xml
65 NEWS: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/NEWS.xml
66         $(xml2txt_command) $(srcdir)/docs/gnu/NEWS.xml
68 TODO: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/TODO.xml
69         $(xml2txt_command) $(srcdir)/docs/gnu/TODO.xml
71 CONTRIBUTING: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/CONTRIBUTING.xml
72         $(xml2txt_command) $(srcdir)/docs/gnu/CONTRIBUTING.xml
74 HACKING: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/HACKING.xml
75         $(xml2txt_command) $(srcdir)/docs/gnu/HACKING.xml