In the 802.11 dissector, mark the "wep_keys" preference as obsolete,
[obnox/wireshark/wip.git] / docbook / Makefile.auto.am
1 #
2 # Make the "Wireshark User Guide" and "Wireshark Developer Guide"
3 # in several formats.
4 # See the Readme.txt file for instructions.
5 #
6 # $Id$
7 #
8
9 # if you need to change this, don't forget to change it in catalog.xml too
10
11 # On suse 9.2, uncomment the following line:
12 DOCBOOKXSL="/usr/share/xml/docbook/stylesheet/nwalsh/1.65.1"
13
14 #DOCBOOKXSL="/usr/share/docbook-xsl"
15
16 ############### YOU SHOULDN'T HAVE TO EDIT ANYTHING BELOW THIS LINE! ################
17
18 # as wsug_chm will stop with an error, make sure it's the last in this dependency list
19 all: wsug wsdg
20
21 wsug: wsug_validate wsug_pdf_a4 wsug_html wsug_html_chunked wsug_chm 
22
23 clean:
24         rm -f *.html
25         rm -f htmlhelp.*
26         rm -f *.hhc
27         rm -f *.hhp
28         rm -f *.fo
29         rm -f *.pdf
30         rm -f *.chm
31         rm -rf wsug_html
32         rm -rf wsug_html_chunked
33         rm -rf wsug_chm
34         rm -rf wsdg_html
35         rm -rf wsdg_html_chunked
36         rm -rf wsdg_chm
37
38
39 # validate the content
40 wsug_validate:
41         @ echo --- VALIDATING XML ---
42         $(XMLLINT) --valid --noout user-guide.xml
43
44 # create html single page file
45 wsug_html:
46         @ echo --- HTML SINGLE PAGE ---
47         mkdir -p wsug_html
48         mkdir -p wsug_html/wsug_graphics
49         mkdir -p wsug_html/wsug_graphics/toolbar
50         cp ./wsug_graphics/*.* wsug_html/wsug_graphics
51         cp ./wsug_graphics/toolbar/*.* wsug_html/wsug_graphics/toolbar
52         $(XSLTPROC) --nonet $(DOCBOOKXSL)/html/docbook.xsl user-guide.xml > wsug_html/user-guide.html
53         
54 # create html chunked page files
55 wsug_html_chunked:
56         @ echo --- HTML CHUNKED ---
57         mkdir -p wsug_html_chunked
58         mkdir -p wsug_html_chunked/wsug_graphics
59         mkdir -p wsug_html_chunked/wsug_graphics/toolbar
60         cp ./wsug_graphics/*.* wsug_html_chunked/wsug_graphics
61         cp ./wsug_graphics/toolbar/*.* wsug_html_chunked/wsug_graphics/toolbar
62         $(XSLTPROC) --stringparam base.dir wsug_html_chunked/ --stringparam  use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsug_graphics/ --stringparam section.autolabel 1 --stringparam  section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/html/chunk.xsl user-guide.xml
63
64 # create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
65 # you will get lot's of errors, but that's ok
66 wsug_pdf_us:
67 if HAVE_FOP
68         @ echo --- PDF US PAPER ---
69         $(XSLTPROC) --nonet custom_layer_pdf.xsl $(DOCBOOKXSL)/fo/docbook.xsl user-guide.xml > user-guide.fo
70         $(FOP) user-guide.fo user-guide.pdf
71 endif
72
73 # create pdf file (through XSL-FO), portrait pages on A4 paper
74 # you will get lot's of errors, but that's ok
75 wsug_pdf_a4:
76 if HAVE_FOP
77         @ echo --- PDF A4 PAPER ---
78         $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl user-guide.xml > user-guide.fo
79         $(FOP) user-guide.fo user-guide.pdf
80 endif
81
82 # create MS html help file (through html chunked pages)
83 wsug_chm:
84 if HAVE_HHC
85         @ echo --- MICROSOFT HTML HELP ---
86         mkdir -p wsug_chm
87         mkdir -p wsug_chm/wsug_graphics
88         mkdir -p wsug_chm/wsug_graphics/toolbar
89         cp ./wsug_graphics/*.* wsug_chm/wsug_graphics
90         cp ./wsug_graphics/toolbar/*.* wsug_chm/wsug_graphics/toolbar
91         $(XSLTPROC) --stringparam base.dir wsug_chm/ --stringparam  use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsug_graphics/ --stringparam section.autolabel 1 --stringparam  section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl user-guide.xml
92         -$(HHC) htmlhelp.hhp
93         mv htmlhelp.chm user-guide.chm
94         rm -r htmlhelp.hhp
95         rm -r toc.hhc
96 endif
97
98
99 wsdg: wsdg_validate wsdg_html_chunked wsdg_pdf_a4 wsdg_html wsdg_chm 
100
101 # validate the content
102 wsdg_validate:
103         @ echo --- VALIDATING XML ---
104         $(XMLLINT) --valid --noout developer-guide.xml
105
106 # create html single page file
107 wsdg_html:
108         @ echo --- HTML SINGLE PAGE ---
109         mkdir -p wsdg_html
110         mkdir -p wsdg_html/wsdg_graphics
111         mkdir -p wsdg_html/wsdg_graphics/toolbar
112         cp ./wsdg_graphics/*.* wsdg_html/wsdg_graphics
113         cp ./wsdg_graphics/toolbar/*.* wsdg_html/wsdg_graphics/toolbar
114         $(XSLTPROC) --nonet $(DOCBOOKXSL)/html/docbook.xsl developer-guide.xml > wsdg_html/developer-guide.html
115         
116 # create html chunked page files
117 wsdg_html_chunked:
118         @ echo --- HTML CHUNKED ---
119         mkdir -p wsdg_html_chunked
120         mkdir -p wsdg_html_chunked/wsdg_graphics
121         mkdir -p wsdg_html_chunked/wsdg_graphics/toolbar
122         cp ./wsdg_graphics/*.* wsdg_html_chunked/wsdg_graphics
123         cp ./wsdg_graphics/toolbar/*.* wsdg_html_chunked/wsdg_graphics/toolbar
124         $(XSLTPROC) --stringparam base.dir wsdg_html_chunked/ --stringparam  use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsdg_graphics/ --stringparam section.autolabel 1 --stringparam  section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/html/chunk.xsl developer-guide.xml
125
126 # create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
127 # you will get lot's of errors, but that's ok
128 wsdg_pdf_us:
129 if HAVE_FOP
130         @ echo --- PDF US PAPER ---
131         $(XSLTPROC) --nonet custom_layer_pdf.xsl $(DOCBOOKXSL)/fo/docbook.xsl developer-guide.xml > developer-guide.fo
132         $(FOP) developer-guide.fo developer-guide.pdf
133 endif
134
135 # create pdf file (through XSL-FO), portrait pages on A4 paper
136 # you will get lot's of errors, but that's ok
137 wsdg_pdf_a4:
138 if HAVE_FOP
139         @ echo --- PDF A4 PAPER ---
140         $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide.fo
141         $(FOP) developer-guide.fo developer-guide.pdf
142 endif
143
144 # create MS html help file (through html chunked pages)
145 wsdg_chm:
146 if HAVE_HHC
147         @ echo --- MICROSOFT HTML HELP ---
148         mkdir -p wsdg_chm
149         mkdir -p wsdg_chm/wsdg_graphics
150         mkdir -p wsdg_chm/wsdg_graphics/toolbar
151         cp ./wsdg_graphics/*.* wsdg_chm/wsdg_graphics
152         cp ./wsdg_graphics/toolbar/*.* wsdg_chm/wsdg_graphics/toolbar
153         $(XSLTPROC) --stringparam base.dir wsdg_chm/ --stringparam  use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path wsdg_graphics/ --stringparam section.autolabel 1 --stringparam  section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl developer-guide.xml
154         -$(HHC) htmlhelp.hhp
155         mv htmlhelp.chm developer-guide.chm
156         rm -r htmlhelp.hhp
157         rm -r toc.hhc
158 endif
159