source: doc/user-guide/Makefile @ 6f10697

Last change on this file since 6f10697 was b447d2b, checked in by Wilmer van der Gaast <wilmer@…>, at 2014-09-20T22:19:20Z

Pass generate.consistent.ids flag to xsltproc so id tags in HTML output will
no longer be randomised, so when you generate the file from the same input,
it will in fact generate the same output.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[b7d3cc34]1-include ../../Makefile.settings
[7fa5c19]2ifdef _SRCDIR_
3_SRCDIR_ := $(_SRCDIR_)doc/user-guide/
[f60079b]4endif
5
[b7d3cc34]6EXTRAPARANEWLINE = 1
7# EXTRAPARANEWLINE = 0
8
9all: user-guide.txt user-guide.html help.txt # user-guide.pdf user-guide.ps user-guide.rtf
10
11%.tex: %.db.xml
12        xsltproc --stringparam l10n.gentext.default.language "en" --stringparam latex.documentclass.common "" --stringparam latex.babel.language "" --output $@ http://db2latex.sourceforge.net/xsl/docbook.xsl $<
13
14%.txt: %.db.xml
15        xmlto --skip-validation txt $<
16        mv $*.db.txt $@
17
18%.html: %.db.xml
[b447d2b]19        xsltproc --param generate.consistent.ids 1 --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
[b7d3cc34]20
21%.pdf: %.db.xml
22        xmlto --skip-validation pdf $<
23        mv $*.db.pdf $@
24
25%.ps: %.db.xml
26        xmlto --skip-validation ps $<
27        mv $*.db.ps $@
28
29help.xml: commands.xml
30
31%.db.xml: %.xml docbook.xsl
32        xsltproc --xinclude --output $@ docbook.xsl $<
33
[89a1809]34help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml
[b7d3cc34]35        xsltproc --stringparam extraparanewline "$(EXTRAPARANEWLINE)" --xinclude help.xsl $< | perl -0077 -pe 's/\n\n%/\n%/s; s/_b_/\002/g;' > $@
36
37clean: 
38        rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml
39
40install:
41        mkdir -p $(DESTDIR)$(DATADIR)
42        chmod 0755 $(DESTDIR)$(DATADIR)
43        rm -f $(DESTDIR)$(DATADIR)/help.txt # Prevent help function from breaking in running sessions
[25b80e9c]44        $(INSTALL) -m 0644 $(_SRCDIR_)help.txt $(DESTDIR)$(DATADIR)/help.txt
[b7d3cc34]45
46uninstall:
47        rm -f $(DESTDIR)$(DATADIR)/help.txt
48        -rmdir $(DESTDIR)$(DATADIR)
49
50.PHONY: clean install uninstall
Note: See TracBrowser for help on using the repository browser.