[docs] Using a single README.xml to generate README and the html ADG overview
[adg.git] / Makefile.am
blob09f37ae59c18d3805a9846936bb795c0d45d9e86
1 ## Process this file with automake to produce Makefile.in.
3 XSLTPROC=               `which xsltproc`
5 ACLOCAL_AMFLAGS=        -I m4
8 EXTRA_DIST=             ABOUT-NLS \
9                         AUTHORS \
10                         config.rpath \
11                         COPYING \
12                         ChangeLog \
13                         ChangeLog-0.2.1 \
14                         INSTALL \
15                         m4/ChangeLog \
16                         NEWS \
17                         README
19 SUBDIRS=                cpml \
20                         adg \
21                         demo \
22                         docs \
23                         po
25 # Creating ChangeLog files from git log:
26 # idea stolen from cairo/build/Makefile.am.changelog
27 ChangeLog:
28         @echo Updating $@
29         @if test -d "$(srcdir)/.git"; then \
30           (cd "$(srcdir)" && git log --stat > $@); \
31         else \
32           echo A git checkout is required to generate $@ >&2; \
33         fi
35 # Update the README from the xml version
36 README: $(srcdir)/docs/gnu/docbook2txt.xsl $(srcdir)/docs/gnu/README.xml
37         @echo Updating $@
38         @if test -x $(XSLTPROC); then \
39           $(XSLTPROC) -o $@ $^; \
40         else \
41           echo libxslt-1.0.19 or later is required in order to generate the README; \
42         fi