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)
63 # The installer needs the docs but the MinGW toolchain does not have
64 # gtk-doc installed. Issue #148: http://dev.entidi.com/p/adg/issues/148/
65 _host/docs/adg/html/index.html:
68 $(abs_srcdir)/configure \
70 --disable-dependency-tracking \
71 --disable-fast-install \
73 --disable-introspection \
74 --disable-test-framework \
76 --enable-gtk-doc-html && \
83 $(INSTALLER): _host/docs/adg/html/index.html
84 $(MAKENSIS) -NOCD $(srcdir)/build/adg.nsi
92 # Creating ChangeLog files from git log:
93 # idea stolen from cairo/build/Makefile.am.changelog
95 $(AM_V_GEN)if test -d "$(abs_srcdir)/.git"; then \
96 ( cd "$(abs_srcdir)" && git log --stat > $@ ) ; \
98 echo ' *WARN A git checkout is required to generate $@' ; \
102 # Autogenerated text docs
103 README: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/README.xml
104 $(xml2txt_command) $(abs_srcdir)/docs/adg/README.xml
106 NEWS: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/NEWS.xml
107 $(xml2txt_command) $(abs_srcdir)/docs/adg/NEWS.xml
109 TODO: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/TODO.xml
110 $(xml2txt_command) $(abs_srcdir)/docs/adg/TODO.xml
112 CONTRIBUTING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/CONTRIBUTING.xml
113 $(xml2txt_command) $(abs_srcdir)/docs/adg/CONTRIBUTING.xml
115 HACKING: $(xml2txt_stylesheet) $(abs_srcdir)/docs/adg/HACKING.xml
116 $(xml2txt_command) $(abs_srcdir)/docs/adg/HACKING.xml