1 include $(top_srcdir)/build/Makefile.am.common
3 xml2txt_stylesheet= $(abs_srcdir)/docs/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 $@' ; \
9 $(XSLTPROC) --novalid -o $@ $(xml2txt_stylesheet)
10 ACLOCAL_AMFLAGS= -I build
11 AM_DISTCHECK_CONFIGURE_FLAGS= --enable-pango \
13 --enable-test-framework \
14 --enable-introspection \
16 --with-glade-catalogdir
18 BUILT_SOURCES= ChangeLog \
30 build/configure-win32 \
31 build/configure-win64 \
32 build/adg-header.bmp \
33 build/adg-welcome.bmp \
35 build/gschemas.compiled \
38 CLEANFILES= test-report.xml \
57 INSTALLER=adg-$(PACKAGE_VERSION)-win$(PACKAGE_ARCH).exe
59 installer: $(INSTALLER)
61 # The installer needs the docs but the MinGW toolchain does not have
62 # gtk-doc installed. Issue #148: http://dev.entidi.com/p/adg/issues/148/
63 _host/docs/adg/adg.pdf:
66 $(abs_srcdir)/configure \
68 --disable-dependency-tracking \
69 --disable-fast-install \
71 --disable-introspection \
72 --disable-test-framework \
73 --without-glade-catalogdir \
75 --enable-gtk-doc-html \
76 --enable-gtk-doc-pdf && \
83 $(INSTALLER): _host/docs/adg/adg.pdf $(srcdir)/build/adg.nsi
84 $(MAKENSIS) -NOCD $(srcdir)/build/adg.nsi
94 coverage: src/cpml/cpml-primitive.c.gcov src/adg/adg-canvas.c.gcov
96 src/cpml/cpml-primitive.c.gcov:
97 $(MAKE) -C src/cpml $(AM_MAKEFLAGS) coverage
99 src/adg/adg-canvas.c.gcov:
100 $(MAKE) -C src/adg $(AM_MAKEFLAGS) coverage
105 # Creating ChangeLog files from git log:
106 # idea stolen from cairo/build/Makefile.am.changelog
108 $(AM_V_GEN)if test -d "$(abs_srcdir)/.git"; then \
109 ( cd "$(abs_srcdir)" && git log --stat > $@ ) ; \
111 echo ' *WARN A git checkout is required to generate $@' ; \
115 # Autogenerated text docs
116 README: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/README.xml
117 $(xml2txt_command) $(abs_srcdir)/docs/adg/README.xml
119 NEWS: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/NEWS.xml
120 $(xml2txt_command) $(abs_srcdir)/docs/adg/NEWS.xml
122 TODO: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/TODO.xml
123 $(xml2txt_command) $(abs_srcdir)/docs/adg/TODO.xml
125 CONTRIBUTING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/CONTRIBUTING.xml
126 $(xml2txt_command) $(abs_srcdir)/docs/adg/CONTRIBUTING.xml
128 HACKING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/HACKING.xml
129 $(xml2txt_command) $(abs_srcdir)/docs/adg/HACKING.xml