Last change
on this file since 191cfb1 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
|
Rev | Line | |
---|
[b7d3cc34] | 1 | -include ../../Makefile.settings |
---|
[f60079b] | 2 | ifdef SRCDIR |
---|
| 3 | SRCDIR := $(SRCDIR)doc/user-guide/ |
---|
| 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 |
---|
[4af3050] | 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.