source: doc/user-guide/Makefile @ a010498

Last change on this file since a010498 was 4af3050, checked in by Wilmer van der Gaast <wilmer@…>, at 2010-05-25T22:41:52Z

install-* targets should also work now. Let's see how this works out in a deb.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1-include ../../Makefile.settings
2ifdef SRCDIR
3SRCDIR := $(SRCDIR)doc/user-guide/
4endif
5
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
19        xsltproc --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
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
34help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml
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
44        install -m 0644 $(SRCDIR)help.txt $(DESTDIR)$(DATADIR)/help.txt
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.