source: doc/user-guide/Makefile @ d4810df

Last change on this file since d4810df was 89a1809, checked in by Wilmer van der Gaast <wilmer@…>, at 2006-07-14T18:27:02Z

More documentation updates: Added a Scope: line for every setting (for
per-account and global settings) and leaving out the Default: line when
there is no default specified in XML (like with the display_name setting).

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[b7d3cc34]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
[89a1809]30help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml
[b7d3cc34]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.