source: doc/user-guide/Makefile @ d567b58

Last change on this file since d567b58 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
RevLine 
[b7d3cc34]1-include ../../Makefile.settings
[7fa5c19]2ifdef _SRCDIR_
3_SRCDIR_ := $(_SRCDIR_)doc/user-guide/
[f60079b]4endif
5
[1cef55f]6ifndef PYTHON
7PYTHON = python
8endif
9
[baa09cc]10all: help.txt
[b7d3cc34]11
[baa09cc]12user-guide: user-guide.txt user-guide.html # user-guide.pdf user-guide.ps user-guide.rtf
[b7d3cc34]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
[b447d2b]22        xsltproc --param generate.consistent.ids 1 --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
[b7d3cc34]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
[fd45e859]37help.txt: $(_SRCDIR_)help.xml $(_SRCDIR_)commands.xml $(_SRCDIR_)misc.xml $(_SRCDIR_)quickstart.xml
[1cef55f]38        $(PYTHON) $(_SRCDIR_)genhelp.py $< $@
[b7d3cc34]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
[25b80e9c]47        $(INSTALL) -m 0644 $(_SRCDIR_)help.txt $(DESTDIR)$(DATADIR)/help.txt
[b7d3cc34]48
49uninstall:
50        rm -f $(DESTDIR)$(DATADIR)/help.txt
51        -rmdir $(DESTDIR)$(DATADIR)
52
[baa09cc]53.PHONY: clean install uninstall user-guide
Note: See TracBrowser for help on using the repository browser.