diff options
author | dequis <dx@dxzone.com.ar> | 2015-05-17 00:41:41 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-05-17 00:41:41 -0300 |
commit | baa09ccba7c014338f24176129ee1d07ebb8502e (patch) | |
tree | a69e49f35eaf94c8b0d0c589b32a8cfd40d2a96d /doc | |
parent | ad678a46c9cfba48a957114fdd36bc4fe77ae759 (diff) |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user-guide/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/user-guide/Makefile b/doc/user-guide/Makefile index af4180a1..62107ab7 100644 --- a/doc/user-guide/Makefile +++ b/doc/user-guide/Makefile @@ -3,10 +3,9 @@ ifdef _SRCDIR_ _SRCDIR_ := $(_SRCDIR_)doc/user-guide/ endif -EXTRAPARANEWLINE = 1 -# EXTRAPARANEWLINE = 0 +all: help.txt -all: user-guide.txt user-guide.html help.txt # user-guide.pdf user-guide.ps user-guide.rtf +user-guide: user-guide.txt user-guide.html # user-guide.pdf user-guide.ps user-guide.rtf %.tex: %.db.xml xsltproc --stringparam l10n.gentext.default.language "en" --stringparam latex.documentclass.common "" --stringparam latex.babel.language "" --output $@ http://db2latex.sourceforge.net/xsl/docbook.xsl $< @@ -32,7 +31,7 @@ help.xml: commands.xml xsltproc --xinclude --output $@ docbook.xsl $< help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml - xsltproc --stringparam extraparanewline "$(EXTRAPARANEWLINE)" --xinclude help.xsl $< | perl -0077 -pe 's/\n\n%/\n%/s; s/_b_/\002/g;' > $@ + python genhelp.py $< $@ clean: rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml @@ -47,4 +46,4 @@ uninstall: rm -f $(DESTDIR)$(DATADIR)/help.txt -rmdir $(DESTDIR)$(DATADIR) -.PHONY: clean install uninstall +.PHONY: clean install uninstall user-guide |