source: doc/user-guide/Makefile @ 262a82b

3.5.1
Last change on this file since 262a82b was 1cef55f, checked in by dequis <dx@…>, at 2015-06-04T17:13:22Z

configure: allow specifying location of python executable

Because openbsd/netbsd don't have a 'python' in the PATH unless the user
creates the symlink explicitly.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1-include ../../Makefile.settings
2ifdef _SRCDIR_
3_SRCDIR_ := $(_SRCDIR_)doc/user-guide/
4endif
5
6ifndef PYTHON
7PYTHON = python
8endif
9
10all: help.txt
11
12user-guide: user-guide.txt user-guide.html # user-guide.pdf user-guide.ps user-guide.rtf
13
14%.tex: %.db.xml
15        xsltproc --stringparam l10n.gentext.default.language "en" --stringparam latex.documentclass.common "" --stringparam latex.babel.language "" --output $@ http://db2latex.sourceforge.net/xsl/docbook.xsl $<
16
17%.txt: %.db.xml
18        xmlto --skip-validation txt $<
19        mv $*.db.txt $@
20
21%.html: %.db.xml
22        xsltproc --param generate.consistent.ids 1 --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
23
24%.pdf: %.db.xml
25        xmlto --skip-validation pdf $<
26        mv $*.db.pdf $@
27
28%.ps: %.db.xml
29        xmlto --skip-validation ps $<
30        mv $*.db.ps $@
31
32help.xml: commands.xml
33
34%.db.xml: %.xml docbook.xsl
35        xsltproc --xinclude --output $@ docbook.xsl $<
36
37help.txt: $(_SRCDIR_)help.xml $(_SRCDIR_)commands.xml $(_SRCDIR_)misc.xml $(_SRCDIR_)quickstart.xml
38        $(PYTHON) $(_SRCDIR_)genhelp.py $< $@
39
40clean: 
41        rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml
42
43install:
44        mkdir -p $(DESTDIR)$(DATADIR)
45        chmod 0755 $(DESTDIR)$(DATADIR)
46        rm -f $(DESTDIR)$(DATADIR)/help.txt # Prevent help function from breaking in running sessions
47        $(INSTALL) -m 0644 $(_SRCDIR_)help.txt $(DESTDIR)$(DATADIR)/help.txt
48
49uninstall:
50        rm -f $(DESTDIR)$(DATADIR)/help.txt
51        -rmdir $(DESTDIR)$(DATADIR)
52
53.PHONY: clean install uninstall user-guide
Note: See TracBrowser for help on using the repository browser.