[build] Added support for po-properties
[adg.git] / Makefile.am
blobcaa19774fc892b7176491ca20a5709f62ff3ba22
1 MSG_GEN=                        echo '  GEN   '$@;
2 xslt_to_doc=                    @if test -x $(XSLTPROC); then \
3                                   $(MSG_GEN)$(XSLTPROC) -o $@ $^; \
4                                 else \
5                                   echo ' *WARN  libxslt-1.0.19 or later is required in order to generate '$@; \
6                                 fi
7 ACLOCAL_AMFLAGS=                -I m4
8 DISTCHECK_CONFIGURE_FLAGS=      --enable-gtk-doc
10 BUILT_SOURCES=                  ChangeLog \
11                                 README \
12                                 NEWS \
13                                 TODO \
14                                 CONTRIBUTING
16 EXTRA_DIST=                     ABOUT-NLS \
17                                 config.rpath \
18                                 COPYING \
19                                 ChangeLog-0.2.1 \
20                                 INSTALL \
21                                 THANKS \
22                                 m4/ChangeLog \
23                                 adg.doap \
24                                 cpml.pc.in \
25                                 adg.pc.in \
26                                 $(BUILT_SOURCES)
28 SUBDIRS=                        cpml \
29                                 adg \
30                                 demo \
31                                 docs \
32                                 po \
33                                 po-properties
35 pkgconfigdir=                   $(libdir)/pkgconfig
36 pkgconfig_DATA =                cpml.pc \
37                                 adg.pc
39 # Creating ChangeLog files from git log:
40 # idea stolen from cairo/build/Makefile.am.changelog
41 ChangeLog:
42         @if test -d "$(srcdir)/.git"; then \
43           $(MSG_GEN)(cd "$(srcdir)" && git log --stat > $@); \
44         else \
45           echo A git checkout is required to generate $@ >&2; \
46         fi
48 # Autogenerated text docs
49 README: $(srcdir)/docs/gnu/docbook2txt.xsl $(srcdir)/docs/gnu/README.xml
50         $(xslt_to_doc)
52 NEWS: $(srcdir)/docs/gnu/docbook2txt.xsl $(srcdir)/docs/gnu/NEWS.xml
53         $(xslt_to_doc)
55 TODO: $(srcdir)/docs/gnu/docbook2txt.xsl $(srcdir)/docs/gnu/TODO.xml
56         $(xslt_to_doc)
58 CONTRIBUTING: $(srcdir)/docs/gnu/docbook2txt.xsl $(srcdir)/docs/gnu/CONTRIBUTING.xml
59         $(xslt_to_doc)