Last change
on this file since 3c28bd4 was
baa09cc,
checked in by dequis <dx@…>, at 2015-05-17T03:41:41Z
|
Build only help.txt (with genhelp.py), create 'user-guide' target
Since user-guide.{txt,html} aren't normally needed for anything and add
xsltproc/xmlto as dependencies.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[b7d3cc34] | 1 | -include ../../Makefile.settings |
---|
[7fa5c19] | 2 | ifdef _SRCDIR_ |
---|
| 3 | _SRCDIR_ := $(_SRCDIR_)doc/user-guide/ |
---|
[f60079b] | 4 | endif |
---|
| 5 | |
---|
[baa09cc] | 6 | all: help.txt |
---|
[b7d3cc34] | 7 | |
---|
[baa09cc] | 8 | user-guide: user-guide.txt user-guide.html # user-guide.pdf user-guide.ps user-guide.rtf |
---|
[b7d3cc34] | 9 | |
---|
| 10 | %.tex: %.db.xml |
---|
| 11 | xsltproc --stringparam l10n.gentext.default.language "en" --stringparam latex.documentclass.common "" --stringparam latex.babel.language "" --output $@ http://db2latex.sourceforge.net/xsl/docbook.xsl $< |
---|
| 12 | |
---|
| 13 | %.txt: %.db.xml |
---|
| 14 | xmlto --skip-validation txt $< |
---|
| 15 | mv $*.db.txt $@ |
---|
| 16 | |
---|
| 17 | %.html: %.db.xml |
---|
[b447d2b] | 18 | xsltproc --param generate.consistent.ids 1 --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $< |
---|
[b7d3cc34] | 19 | |
---|
| 20 | %.pdf: %.db.xml |
---|
| 21 | xmlto --skip-validation pdf $< |
---|
| 22 | mv $*.db.pdf $@ |
---|
| 23 | |
---|
| 24 | %.ps: %.db.xml |
---|
| 25 | xmlto --skip-validation ps $< |
---|
| 26 | mv $*.db.ps $@ |
---|
| 27 | |
---|
| 28 | help.xml: commands.xml |
---|
| 29 | |
---|
| 30 | %.db.xml: %.xml docbook.xsl |
---|
| 31 | xsltproc --xinclude --output $@ docbook.xsl $< |
---|
| 32 | |
---|
[89a1809] | 33 | help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml |
---|
[baa09cc] | 34 | python genhelp.py $< $@ |
---|
[b7d3cc34] | 35 | |
---|
| 36 | clean: |
---|
| 37 | rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml |
---|
| 38 | |
---|
| 39 | install: |
---|
| 40 | mkdir -p $(DESTDIR)$(DATADIR) |
---|
| 41 | chmod 0755 $(DESTDIR)$(DATADIR) |
---|
| 42 | rm -f $(DESTDIR)$(DATADIR)/help.txt # Prevent help function from breaking in running sessions |
---|
[25b80e9c] | 43 | $(INSTALL) -m 0644 $(_SRCDIR_)help.txt $(DESTDIR)$(DATADIR)/help.txt |
---|
[b7d3cc34] | 44 | |
---|
| 45 | uninstall: |
---|
| 46 | rm -f $(DESTDIR)$(DATADIR)/help.txt |
---|
| 47 | -rmdir $(DESTDIR)$(DATADIR) |
---|
| 48 | |
---|
[baa09cc] | 49 | .PHONY: clean install uninstall user-guide |
---|
Note: See
TracBrowser
for help on using the repository browser.