blob: 01fd9aa2f1fa68b708781e8a8cc3f4b1a75ebd41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
-include ../../Makefile.settings
ifdef _SRCDIR_
_SRCDIR_ := $(_SRCDIR_)doc/user-guide/
endif
ifndef PYTHON
PYTHON = python
endif
all: help.txt
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 $<
%.txt: %.db.xml
xmlto --skip-validation txt $<
mv $*.db.txt $@
%.html: %.db.xml
xsltproc --param generate.consistent.ids 1 --output $@ http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
%.pdf: %.db.xml
xmlto --skip-validation pdf $<
mv $*.db.pdf $@
%.ps: %.db.xml
xmlto --skip-validation ps $<
mv $*.db.ps $@
help.xml: commands.xml
%.db.xml: %.xml docbook.xsl
xsltproc --xinclude --output $@ docbook.xsl $<
help.txt: $(_SRCDIR_)help.xml $(_SRCDIR_)commands.xml $(_SRCDIR_)misc.xml $(_SRCDIR_)quickstart.xml
$(PYTHON) $(_SRCDIR_)genhelp.py $< $@
clean:
rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml
install:
mkdir -p $(DESTDIR)$(DATADIR)
chmod 0755 $(DESTDIR)$(DATADIR)
rm -f $(DESTDIR)$(DATADIR)/help.txt # Prevent help function from breaking in running sessions
$(INSTALL) -m 0644 $(_SRCDIR_)help.txt $(DESTDIR)$(DATADIR)/help.txt
uninstall:
rm -f $(DESTDIR)$(DATADIR)/help.txt
-rmdir $(DESTDIR)$(DATADIR)
.PHONY: clean install uninstall user-guide
|