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-gtk-doc
14 BUILT_SOURCES= ChangeLog \
35 # Creating ChangeLog files from git log:
36 # idea stolen from cairo/build/Makefile.am.changelog
38 @if test -d "$(srcdir)/.git"; then \
40 ( cd "$(srcdir)" && git log --stat > $@ ) ; \
42 echo A git checkout is required to generate $@ >&2 ; \
45 # Autogenerated text docs
46 README: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/README.xml
47 $(xml2txt_command) $(srcdir)/docs/gnu/README.xml
49 NEWS: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/NEWS.xml
50 $(xml2txt_command) $(srcdir)/docs/gnu/NEWS.xml
52 TODO: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/TODO.xml
53 $(xml2txt_command) $(srcdir)/docs/gnu/TODO.xml
55 CONTRIBUTING: $(xml2txt_stylesheet) $(srcdir)/docs/gnu/CONTRIBUTING.xml
56 $(xml2txt_command) $(srcdir)/docs/gnu/CONTRIBUTING.xml