/[fai]/trunk/doc/Makefile
ViewVC logotype

Contents of /trunk/doc/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6671 - (show annotations) (download)
Thu Oct 6 13:23:59 2011 UTC (19 months, 1 week ago) by lange
File size: 1490 byte(s)
use more verbose filenames (like _anchor_id_advanced_xreflabel_advanced_advanced_fai.html)
1 #!/bin/make -s
2
3 DOC = fai-guide
4 MISC_DOC = classes_description.txt links.html changelog.old lenny-instructions.txt
5
6 free: text html ps pdf
7 # echo "`grep -c FIXME $(DOC).txt` FIXMEs left to fix:"
8 # grep FIXME $(DOC).txt
9
10 html:
11 a2x -L --icons-dir=.a2x-icons --icons --copy --asciidoc-opt="-a toc -a toclevels=3" --xsltproc-opts="--stringparam use.id.as.filename 1" -f xhtml $(DOC).txt
12
13 chunked:
14 a2x -L --icons-dir=.a2x-icons --icons --copy --asciidoc-opt="-a toc -a toclevels=3" --xsltproc-opts="--stringparam use.id.as.filename 1" -f chunked $(DOC).txt
15
16 pdf:
17 a2x -L --icons -a toc -a toclevels=3 -f pdf $(DOC).txt
18 rm -f $(DOC).xml $(DOC).fo
19
20 ps:
21 a2x -L --icons -a toc -a toclevels=3 -f ps $(DOC).txt
22 rm -f $(DOC).xml $(DOC).fo
23
24 # a2x uses lynx, maybe use w3m instead
25 # which texwidth for text output?
26 # asciidoc --doctype=article -a "toc" -a "toclevels=3" -f /etc/asciidoc/text.conf -b html4 -o - "f-guide.txt" | lynx -dump -stdin >"./f-guide.text"
27 text:
28 a2x -L --icons -a toc -a toclevels=3 -f text $(DOC).txt
29
30 # for openoffice
31 doc: html
32 unoconv --show >/dev/null 2>&1 || exit "Please install the unoconv package."
33 unoconv -f doc $(DOC).html
34
35 all: free
36
37 install:
38 cp -dRp $(DOC)* $(DOCDIR)
39 cp -p $(MISC_DOC) $(DOCDIR)
40
41 clean:
42 rm -rf .a2x-icons fai-guide.chunked
43 rm -f $(DOC).text $(DOC).html $(DOC).doc $(DOC).pdf $(DOC).xml $(DOC).ps docbook-xsl.css
44
45 test:
46 asciidoc --version > /dev/null 2>&1 || exit "Please install the asciidoc package."
47
48
49 .PHONY: all test clean
50
51
52
53

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5