Last change
on this file since 441a67e was
7fa5c19,
checked in by Wilmer van der Gaast <wilmer@…>, at 2012-02-11T12:55:45Z
|
Rename SRCDIR directory to _SRCDIR_. I guess #907 was caused by SRCDIR
unexpectedly being set to something already.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[b7d3cc34] | 1 | -include ../../Makefile.settings |
---|
[7fa5c19] | 2 | ifdef _SRCDIR_ |
---|
| 3 | _SRCDIR_ := $(_SRCDIR_)doc/user-guide/ |
---|
[f60079b] | 4 | endif |
---|
| 5 | |
---|
[b7d3cc34] | 6 | EXTRAPARANEWLINE = 1 |
---|
| 7 | # EXTRAPARANEWLINE = 0 |
---|
| 8 | |
---|
| 9 | all: 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 |
---|
[76b6521] | 19 | xsltproc --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $< |
---|
[b7d3cc34] | 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 | |
---|
| 29 | help.xml: commands.xml |
---|
| 30 | |
---|
| 31 | %.db.xml: %.xml docbook.xsl |
---|
| 32 | xsltproc --xinclude --output $@ docbook.xsl $< |
---|
| 33 | |
---|
[89a1809] | 34 | help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml |
---|
[b7d3cc34] | 35 | xsltproc --stringparam extraparanewline "$(EXTRAPARANEWLINE)" --xinclude help.xsl $< | perl -0077 -pe 's/\n\n%/\n%/s; s/_b_/\002/g;' > $@ |
---|
| 36 | |
---|
| 37 | clean: |
---|
| 38 | rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml |
---|
| 39 | |
---|
| 40 | install: |
---|
| 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 |
---|
[7fa5c19] | 44 | install -m 0644 $(_SRCDIR_)help.txt $(DESTDIR)$(DATADIR)/help.txt |
---|
[b7d3cc34] | 45 | |
---|
| 46 | uninstall: |
---|
| 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.