3 BOOK_NAME = vala@PACKAGE_SUFFIX@
5 bookdir = $(datadir)/devhelp/books/$(BOOK_NAME)
12 $(builddir)/devhelp/*: devhelp
13 devhelp: manual.xml version.xml common.xsl devhelp.xsl xhtml.xsl default.css
15 $(AM_V_GEN)$(XSLTPROC) \
18 --output $@/$(BOOK_NAME).devhelp2 \
19 $(srcdir)/devhelp.xsl \
24 --output $@/index.html \
27 @cp $(srcdir)/default.css $@
30 html: manual.xml version.xml common.xsl xhtml.xsl default.css
32 $(AM_V_GEN)$(XSLTPROC) \
34 --stringparam body-class u-center \
35 --output $@/index.html \
38 @cp $(srcdir)/default.css $@
42 manual.html: manual.xml version.xml common.xsl print.xsl default.css
43 $(AM_V_GEN)$(XSLTPROC) \
52 manual.pdf: manual.html default.css
53 @echo Generating PDF version of manual, this may take some time...
54 $(AM_V_GEN)$(WEASYPRINT) \
59 @echo Install weasyprint and re-run ./configure to generate a PDF of the Vala manual
84 MANUAL_DOCBOOK_URL=https://wiki.gnome.org/Projects/Vala/Manual/Export?action=format\&mimetype=text/docbook
87 @echo "Generating $@ from $(MANUAL_DOCBOOK_URL)"
88 @curl --silent $(MANUAL_DOCBOOK_URL) | \
89 sed -e 's/<articleinfo>.*<\/articleinfo>//g' | \
90 sed -e 's/<section>/\n\n<section>/g' | \
91 sed -e 's/<\/section>/\n<\/section>/g' | \
92 sed -e 's/<title>/\n<title>/g' | \
93 sed -e 's/<para>/\n<para>/g' \
96 update-manual-from-wiki:
97 @rm $(srcdir)/manual.xml
98 $(MAKE) $(AM_MAKEFLAGS) manual.xml
99 $(MAKE) $(AM_MAKEFLAGS)