Last change
on this file since b86f37d was
a893271,
checked in by dx <dx@…>, at 2017-08-26T18:15:04Z
|
Twitter documentation: move commands to a chapter
The Twitter commands are now documented in their own chapter
accessed by help twitter instead of being hidden in `help set
commands`.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[b7d3cc34] | 1 | -include ../../Makefile.settings |
---|
[7fa5c19] | 2 | ifdef _SRCDIR_ |
---|
| 3 | _SRCDIR_ := $(_SRCDIR_)doc/user-guide/ |
---|
[f60079b] | 4 | endif |
---|
| 5 | |
---|
[1cef55f] | 6 | ifndef PYTHON |
---|
| 7 | PYTHON = python |
---|
| 8 | endif |
---|
| 9 | |
---|
[baa09cc] | 10 | all: help.txt |
---|
[b7d3cc34] | 11 | |
---|
[baa09cc] | 12 | user-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 | |
---|
| 32 | help.xml: commands.xml |
---|
| 33 | |
---|
| 34 | %.db.xml: %.xml docbook.xsl |
---|
| 35 | xsltproc --xinclude --output $@ docbook.xsl $< |
---|
| 36 | |
---|
[a893271] | 37 | help.txt: $(_SRCDIR_)help.xml $(_SRCDIR_)commands.xml $(_SRCDIR_)misc.xml $(_SRCDIR_)quickstart.xml $(_SRCDIR_)twitter.xml |
---|
[1cef55f] | 38 | $(PYTHON) $(_SRCDIR_)genhelp.py $< $@ |
---|
[b7d3cc34] | 39 | |
---|
| 40 | clean: |
---|
| 41 | rm -f *.html *.pdf *.ps *.rtf *.txt *.db.xml |
---|
| 42 | |
---|
| 43 | install: |
---|
| 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 | |
---|
| 49 | uninstall: |
---|
| 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.