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

Contents of /trunk/doc/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5499 - (hide annotations) (download)
Mon Aug 10 12:26:31 2009 UTC (3 years, 9 months ago) by lange
File size: 1214 byte(s)
  new build-depends-indep for asciidoc tools
* doc/Makefile: new target for asciidoc documentation
* doc/fai-guide.txt: fai-guide now written with asciidoc
1 lange 5499 #!/bin/make -s
2    
3     DOC = fai-guide
4 lange 2941 MISC_DOC = classes_description.txt links.html changelog.old
5 lange 173
6 lange 5499 free: text html ps pdf
7     # echo "`grep -c FIXME $(DOC).txt` FIXMEs left to fix:"
8     # grep FIXME $(DOC).txt
9 lange 173
10 lange 5499 html:
11     a2x --icons-dir=.a2x-icons --icons --copy --asciidoc-opt="-a toc -a toclevels=3" -f xhtml $(DOC).txt
12 lange 173
13 lange 5499 pdf:
14     a2x --icons -a toc -a toclevels=3 -f pdf $(DOC).txt
15     rm -f $(DOC).xml $(DOC).fo
16 lange 233
17 lange 5499 ps:
18     a2x --icons -a toc -a toclevels=3 -f ps $(DOC).txt
19     rm -f $(DOC).xml $(DOC).fo
20 lange 173
21 lange 5499 # a2x uses lynx, maybe use w3m instead
22     # which texwidth for text output?
23     # 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"
24     text:
25     a2x --icons -a toc -a toclevels=3 -f text $(DOC).txt
26 lange 173
27 lange 5499 # for openoffice
28     doc: html
29     unoconv --show >/dev/null 2>&1 || exit "Please install the unoconv package."
30     unoconv -f doc $(DOC).html
31 lange 173
32 lange 5499 all: free
33 lange 979
34 lange 5499 install:
35     cp -dRp $(DOC)* $(DOCDIR)
36     cp -p $(MISC_DOC) $(DOCDIR)
37 lange 979
38 lange 5499 clean:
39     rm -rf .a2x-icons
40     rm -f $(DOC).text $(DOC).html $(DOC).doc $(DOC).pdf $(DOC).xml $(DOC).ps docbook-xsl.css
41 lange 979
42 lange 173 test:
43 lange 5499 asciidoc --version > /dev/null 2>&1 || exit "Please install the asciidoc package."
44 lange 173
45    
46 lange 5499 .PHONY: all test clean
47 lange 173
48    
49    
50 lange 5499

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5