source: doc/user-guide/Makefile @ 4ff0966

Last change on this file since 4ff0966 was b7d3cc34, checked in by Wilmer van der Gaast <wilmer@…>, at 2005-11-06T18:23:18Z

Initial repository (0.99 release tree)

  • Property mode set to 100644
File size: 1.3 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/html/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
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.