Last change
on this file since 54a2014 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
|
Rev | Line | |
---|
[b7d3cc34] | 1 | -include ../../Makefile.settings |
---|
| 2 | EXTRAPARANEWLINE = 1 |
---|
| 3 | # EXTRAPARANEWLINE = 0 |
---|
| 4 | |
---|
| 5 | all: 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 |
---|
[76b6521] | 15 | xsltproc --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $< |
---|
[b7d3cc34] | 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 | |
---|
| 25 | help.xml: commands.xml |
---|
| 26 | |
---|
| 27 | %.db.xml: %.xml docbook.xsl |
---|
| 28 | xsltproc --xinclude --output $@ docbook.xsl $< |
---|
| 29 | |
---|
[89a1809] | 30 | help.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 | |
---|
| 33 | clean: |
---|
| 34 | rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml |
---|
| 35 | |
---|
| 36 | install: |
---|
| 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 | |
---|
| 42 | uninstall: |
---|
| 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.