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 $@' ; \
10 $(XSLTPROC) --novalid -o $@ $(xml2txt_stylesheet)
11 ACLOCAL_AMFLAGS= -I build
12 DISTCHECK_CONFIGURE_FLAGS= --enable-gtk2 \
15 --enable-test-framework
17 BUILT_SOURCES= ChangeLog \
39 # Creating ChangeLog files from git log:
40 # idea stolen from cairo/build/Makefile.am.changelog
43 if test -d "$(srcdir)/.git"; then \
44 ( cd "$(srcdir)" && git log --stat > $@ ) ; \
46 echo ' *WARN A git checkout is required to generate $@' ; \
50 # Autogenerated text docs
51 README: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/README.xml
52 $(xml2txt_command) $(srcdir)/docs/gnu/README.xml
54 NEWS: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/NEWS.xml
55 $(xml2txt_command) $(srcdir)/docs/gnu/NEWS.xml
57 TODO: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/TODO.xml
58 $(xml2txt_command) $(srcdir)/docs/gnu/TODO.xml
60 CONTRIBUTING: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/CONTRIBUTING.xml
61 $(xml2txt_command) $(srcdir)/docs/gnu/CONTRIBUTING.xml