source: doc/user-guide/Makefile @ edfc6db

Last change on this file since edfc6db was 76b6521, checked in by Wilmer van der Gaast <wilmer@…>, at 2008-09-07T13:03:51Z

Switched docs to UTF-8, using XHTML DocBook template instead of old HTML
one, to get that doc over to UTF-8 as well (all for the majestik møøse!)

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