2 # Automake file for Wireshark documentation
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 # We include dependencies on ../config.h in order to
25 # capture when $(VERSION) changes.
28 # This is a hideous hack.
30 # Automake needs to know into which sections to install various man
31 # pages; if the names in "man_MANS" have suffixes, it can infer the
32 # sections from the name (e.g., "hello.1" goes in section 1), but if
33 # they don't have suffixes, it can't tell what sections to put them, and
34 # it just gives up and doesn't create any rules to install them (and it
35 # gives up silently, so you have no clue what's wrong).
37 # Therefore, we can't just set "man_MANS" to a list of variables to be
38 # filled in by the configure script, as those variables don't have man
39 # page section numbers.
41 # It turns out (although this is not documented anywhere I could find
42 # in the automake Info file) that if you define, instead, variables with
43 # names like "man{section}_MANS", automake will infer that the names in
44 # those variables are the names of man pages to be installed in section
47 # So we define "man1_MANS" to contain all the section 1 man pages and
48 # man4_MANS for the (one) section 4 man page.
50 # *However*, if "man_MANS" isn't defined at all, automake concludes that
51 # there are no man pages, the fact that, say, "man1_MANS" is defined
52 # nonwithstanding! (I suspect this is the result of a mistaken attempt
53 # to get people to fix their automake files not to use "MANS"; if "MANS"
54 # is defined, it prints a warning and sets the exit status, but doesn't
55 # exit, and then it just gives up if "man_MANS" isn't defined,
56 # presumably on the theory that the only reason it wouldn't be defined
57 # is because the automake file uses the obsolete "MANS" variable instead
58 # of the shiny new "man_MANS" variable.)
60 # So we also define "man_MANS", but don't define it as anything;
61 # automake will arrange that the Makefile define it as the union of all
62 # the "man{section}_MANS" variables.
76 man4_MANS = @wiresharkfilter_man@
79 pkgdata_DATA = AUTHORS-SHORT $(top_srcdir)/docbook/ws.css wireshark.html \
80 tshark.html wireshark-filter.html capinfos.html editcap.html \
81 idl2wrs.html mergecap.html text2pcap.html dumpcap.html rawshark.html \
82 dftest.html randpkt.html
85 # Build the short version of the authors file for the about dialog
87 AUTHORS-SHORT: $(top_srcdir)/AUTHORS $(srcdir)/make-authors-short.pl
88 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(top_srcdir)/AUTHORS > AUTHORS-SHORT
90 # Put a copy in the top-level directory so Help->About, when run from the
91 # build directory, can find it.
92 ../AUTHORS-SHORT: AUTHORS-SHORT
96 # Build the short version of the authors file with formatting codes for the
98 # (Depending on ../AUTHORS-SHORT is a bit of a hack to get the file copied
101 AUTHORS-SHORT-FORMAT: ../AUTHORS-SHORT $(srcdir)/make-authors-format.pl
102 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
104 wireshark.pod: $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT
105 cat $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT > wireshark.pod
107 wireshark.1: wireshark.pod ../config.h
109 --center="The Wireshark Network Analyzer" \
110 --release=$(VERSION) \
111 wireshark.pod > wireshark.1
113 wireshark.html: wireshark.pod ../config.h $(top_srcdir)/docbook/ws.css
115 --title="The Wireshark Network Analyzer $(VERSION)" \
116 --css=$(top_srcdir)/docbook/ws.css \
118 wireshark.pod > wireshark.html
120 tshark.1: tshark.pod ../config.h
122 --center="The Wireshark Network Analyzer" \
123 --release=$(VERSION) \
124 $(srcdir)/tshark.pod > tshark.1
126 tshark.html: tshark.pod ../config.h $(top_srcdir)/docbook/ws.css
128 --title="tshark - The Wireshark Network Analyzer $(VERSION)" \
129 --css=$(top_srcdir)/docbook/ws.css \
131 $(srcdir)/tshark.pod > tshark.html
133 wireshark-filter.4: wireshark-filter.pod ../config.h
136 --center="The Wireshark Network Analyzer" \
137 --release=$(VERSION) \
138 $(srcdir)/wireshark-filter.pod > wireshark-filter.4
140 wireshark-filter.html: wireshark-filter.pod ../config.h $(top_srcdir)/docbook/ws.css
142 --title="wireshark-filter - The Wireshark Network Analyzer $(VERSION)" \
143 --css=$(top_srcdir)/docbook/ws.css \
145 $(srcdir)/wireshark-filter.pod > wireshark-filter.html
147 capinfos.1: capinfos.pod ../config.h
149 --center="The Wireshark Network Analyzer" \
150 --release=$(VERSION) \
151 $(srcdir)/capinfos.pod > capinfos.1
153 capinfos.html: capinfos.pod ../config.h $(top_srcdir)/docbook/ws.css
155 --title="capinfos - The Wireshark Network Analyzer $(VERSION)" \
156 --css=$(top_srcdir)/docbook/ws.css \
158 $(srcdir)/capinfos.pod > capinfos.html
160 editcap.1: editcap.pod ../config.h
162 --center="The Wireshark Network Analyzer" \
163 --release=$(VERSION) \
164 $(srcdir)/editcap.pod > editcap.1
166 editcap.html: editcap.pod ../config.h $(top_srcdir)/docbook/ws.css
168 --title="editcap - The Wireshark Network Analyzer $(VERSION)" \
169 --css=$(top_srcdir)/docbook/ws.css \
171 $(srcdir)/editcap.pod > editcap.html
173 idl2wrs.1: idl2wrs.pod ../config.h
175 --center="The Wireshark Network Analyzer" \
176 --release=$(VERSION) \
177 $(srcdir)/idl2wrs.pod > idl2wrs.1
179 idl2wrs.html: idl2wrs.pod ../config.h $(top_srcdir)/docbook/ws.css
181 --title="idl2wrs - The Wireshark Network Analyzer $(VERSION)" \
182 --css=$(top_srcdir)/docbook/ws.css \
184 $(srcdir)/idl2wrs.pod > idl2wrs.html
186 mergecap.1: mergecap.pod ../config.h
188 --center="The Wireshark Network Analyzer" \
189 --release=$(VERSION) \
190 $(srcdir)/mergecap.pod > mergecap.1
192 mergecap.html: mergecap.pod ../config.h $(top_srcdir)/docbook/ws.css
194 --title="mergecap - The Wireshark Network Analyzer $(VERSION)" \
195 --css=$(top_srcdir)/docbook/ws.css \
197 $(srcdir)/mergecap.pod > mergecap.html
199 text2pcap.1: text2pcap.pod ../config.h
201 --center="The Wireshark Network Analyzer" \
202 --release=$(VERSION) \
203 $(srcdir)/text2pcap.pod > text2pcap.1
205 text2pcap.html: text2pcap.pod ../config.h $(top_srcdir)/docbook/ws.css
207 --title="text2pcap - The Wireshark Network Analyzer $(VERSION)" \
208 --css=$(top_srcdir)/docbook/ws.css \
210 $(srcdir)/text2pcap.pod > text2pcap.html
212 dumpcap.1: dumpcap.pod ../config.h
214 --center="The Wireshark Network Analyzer" \
215 --release=$(VERSION) \
216 $(srcdir)/dumpcap.pod > dumpcap.1
218 dumpcap.html: dumpcap.pod ../config.h $(top_srcdir)/docbook/ws.css
220 --title="dumpcap - The Wireshark Network Analyzer $(VERSION)" \
221 --css=$(top_srcdir)/docbook/ws.css \
223 $(srcdir)/dumpcap.pod > dumpcap.html
225 rawshark.1: rawshark.pod ../config.h
227 --center="The Wireshark Network Analyzer" \
228 --release=$(VERSION) \
229 $(srcdir)/rawshark.pod > rawshark.1
231 rawshark.html: rawshark.pod ../config.h $(top_srcdir)/docbook/ws.css
233 --title="rawshark - The Wireshark Network Analyzer $(VERSION)" \
234 --css=$(top_srcdir)/docbook/ws.css \
236 $(srcdir)/rawshark.pod > rawshark.html
238 dftest.1: dftest.pod ../config.h
240 --center="The Wireshark Network Analyzer" \
241 --release=$(VERSION) \
242 $(srcdir)/dftest.pod > dftest.1
244 dftest.html: dftest.pod ../config.h $(top_srcdir)/docbook/ws.css
246 --title="dftest - The Wireshark Network Analyzer $(VERSION)" \
247 --css=$(top_srcdir)/docbook/ws.css \
249 $(srcdir)/dftest.pod > dftest.html
251 randpkt.1: randpkt.pod ../config.h
253 --center="The Wireshark Network Analyzer" \
254 --release=$(VERSION) \
255 $(srcdir)/randpkt.pod > randpkt.1
257 randpkt.html: randpkt.pod ../config.h $(top_srcdir)/docbook/ws.css
259 --title="randpkt - The Wireshark Network Analyzer $(VERSION)" \
260 --css=$(top_srcdir)/docbook/ws.css \
262 $(srcdir)/randpkt.pod > randpkt.html
267 wireshark-filter.html \
296 AUTHORS-SHORT-FORMAT \
299 MAINTAINERCLEANFILES = \
308 README.display_filter \
315 README.request_response_tracking \
320 make-authors-format.pl \
321 make-authors-short.pl \
337 wireshark-filter.pod \
338 wireshark.pod.template