2 # Automake file for Wireshark documentation
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 # We include dependencies on ../config.h in order to
23 # capture when $(VERSION) changes.
26 # This is a hideous hack.
28 # Automake needs to know into which sections to install various man
29 # pages; if the names in "man_MANS" have suffixes, it can infer the
30 # sections from the name (e.g., "hello.1" goes in section 1), but if
31 # they don't have suffixes, it can't tell what sections to put them, and
32 # it just gives up and doesn't create any rules to install them (and it
33 # gives up silently, so you have no clue what's wrong).
35 # Therefore, we can't just set "man_MANS" to a list of variables to be
36 # filled in by the configure script, as those variables don't have man
37 # page section numbers.
39 # It turns out (although this is not documented anywhere I could find
40 # in the automake Info file) that if you define, instead, variables with
41 # names like "man{section}_MANS", automake will infer that the names in
42 # those variables are the names of man pages to be installed in section
45 # So we define "man1_MANS" to contain all the section 1 man pages and
46 # man4_MANS for the (one) section 4 man page.
48 # *However*, if "man_MANS" isn't defined at all, automake concludes that
49 # there are no man pages, the fact that, say, "man1_MANS" is defined
50 # nonwithstanding! (I suspect this is the result of a mistaken attempt
51 # to get people to fix their automake files not to use "MANS"; if "MANS"
52 # is defined, it prints a warning and sets the exit status, but doesn't
53 # exit, and then it just gives up if "man_MANS" isn't defined,
54 # presumably on the theory that the only reason it wouldn't be defined
55 # is because the automake file uses the obsolete "MANS" variable instead
56 # of the shiny new "man_MANS" variable.)
58 # So we also define "man_MANS", but don't define it as anything;
59 # automake will arrange that the Makefile define it as the union of all
60 # the "man{section}_MANS" variables.
75 man4_MANS = @wiresharkfilter_man@
78 # Build these in case a developer wants to read them and for the Debian
79 # development package.
80 # (The former arguably should be in noinst_MANS but it didn't work for me.)
81 noinst_DATA = asn2deb.1 asn2deb.html idl2deb.1 idl2deb.html idl2wrs.1 idl2wrs.html
83 pkgdata_DATA = AUTHORS-SHORT $(top_srcdir)/docbook/ws.css wireshark.html \
84 tshark.html wireshark-filter.html capinfos.html editcap.html \
85 mergecap.html reordercap.html text2pcap.html dumpcap.html androiddump.html \
86 rawshark.html dftest.html randpkt.html
89 # Build the short version of the authors file for the about dialog
91 AUTHORS-SHORT: $(top_srcdir)/AUTHORS $(srcdir)/make-authors-short.pl
92 $(AM_V_GEN)$(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(top_srcdir)/AUTHORS > AUTHORS-SHORT
94 # Put a copy in the top-level directory so Help->About, when run from the
95 # build directory, can find it.
96 ../AUTHORS-SHORT: AUTHORS-SHORT
97 $(AM_V_GEN)cp AUTHORS-SHORT ..
100 # Build the short version of the authors file with formatting codes for the
102 # (Depending on ../AUTHORS-SHORT is a bit of a hack to get the file copied
105 AUTHORS-SHORT-FORMAT: ../AUTHORS-SHORT $(srcdir)/make-authors-format.pl
106 $(AM_V_GEN)$(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
108 wireshark.pod: $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT
109 $(AM_V_GEN)cat $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT > wireshark.pod
111 AM_V_POD2MAN = $(am__v_POD2MAN_@AM_V@)
112 am__v_POD2MAN_ = $(am__v_POD2MAN_@AM_DEFAULT_V@)
113 am__v_POD2MAN_0 = @echo " POD2MAN " $@;
115 AM_V_POD2HTML = $(am__v_POD2HTML_@AM_V@)
116 am__v_POD2HTML_ = $(am__v_POD2HTML_@AM_DEFAULT_V@)
117 am__v_POD2HTML_0 = @echo " POD2HTML" $@;
119 POD_CSS_URL ?= $(top_srcdir)/docbook/ws.css
122 $(AM_V_POD2MAN)$(POD2MAN) \
123 --center="The Wireshark Network Analyzer" \
124 --release=$(VERSION) \
127 .pod.html: ../config.h $(top_srcdir)/docbook/ws.css
128 $(AM_V_POD2HTML)$(POD2HTML) \
129 --title="The Wireshark Network Analyzer $(VERSION)" \
130 --css=$(POD_CSS_URL) \
134 # This rule needs to stay separate because of the --section option.
135 wireshark-filter.4: wireshark-filter.pod ../config.h
136 $(AM_V_POD2MAN)$(POD2MAN) \
138 --center="The Wireshark Network Analyzer" \
139 --release=$(VERSION) \
140 $(srcdir)/wireshark-filter.pod > wireshark-filter.4
142 # These rules need to stay separate because each man page has a separate
143 # title. Using GNU make's pattern rules would allow these to be removed
144 # but at the cost of portability.
145 tshark.html: tshark.pod ../config.h $(top_srcdir)/docbook/ws.css
146 $(AM_V_POD2HTML)$(POD2HTML) \
147 --title="tshark - The Wireshark Network Analyzer $(VERSION)" \
148 --css=$(POD_CSS_URL) \
150 $(srcdir)/tshark.pod > tshark.html
152 wireshark-filter.html: wireshark-filter.pod ../config.h $(top_srcdir)/docbook/ws.css
153 $(AM_V_POD2HTML)$(POD2HTML) \
154 --title="wireshark-filter - The Wireshark Network Analyzer $(VERSION)" \
155 --css=$(POD_CSS_URL) \
157 $(srcdir)/wireshark-filter.pod > wireshark-filter.html
159 capinfos.html: capinfos.pod ../config.h $(top_srcdir)/docbook/ws.css
160 $(AM_V_POD2HTML)$(POD2HTML) \
161 --title="capinfos - The Wireshark Network Analyzer $(VERSION)" \
162 --css=$(POD_CSS_URL) \
164 $(srcdir)/capinfos.pod > capinfos.html
166 editcap.html: editcap.pod ../config.h $(top_srcdir)/docbook/ws.css
167 $(AM_V_POD2HTML)$(POD2HTML) \
168 --title="editcap - The Wireshark Network Analyzer $(VERSION)" \
169 --css=$(POD_CSS_URL) \
171 $(srcdir)/editcap.pod > editcap.html
173 idl2wrs.html: idl2wrs.pod ../config.h $(top_srcdir)/docbook/ws.css
174 $(AM_V_POD2HTML)$(POD2HTML) \
175 --title="idl2wrs - The Wireshark Network Analyzer $(VERSION)" \
176 --css=$(POD_CSS_URL) \
178 $(srcdir)/idl2wrs.pod > idl2wrs.html
180 mergecap.html: mergecap.pod ../config.h $(top_srcdir)/docbook/ws.css
181 $(AM_V_POD2HTML)$(POD2HTML) \
182 --title="mergecap - The Wireshark Network Analyzer $(VERSION)" \
183 --css=$(POD_CSS_URL) \
185 $(srcdir)/mergecap.pod > mergecap.html
187 reordercap.html: reordercap.pod ../config.h $(top_srcdir)/docbook/ws.css
188 $(AM_V_POD2HTML)$(POD2HTML) \
189 --title="reordercap - The Wireshark Network Analyzer $(VERSION)" \
190 --css=$(POD_CSS_URL) \
192 $(srcdir)/reordercap.pod > reordercap.html
194 text2pcap.html: text2pcap.pod ../config.h $(top_srcdir)/docbook/ws.css
195 $(AM_V_POD2HTML)$(POD2HTML) \
196 --title="text2pcap - The Wireshark Network Analyzer $(VERSION)" \
197 --css=$(POD_CSS_URL) \
199 $(srcdir)/text2pcap.pod > text2pcap.html
201 dumpcap.html: dumpcap.pod ../config.h $(top_srcdir)/docbook/ws.css
202 $(AM_V_POD2HTML)$(POD2HTML) \
203 --title="dumpcap - The Wireshark Network Analyzer $(VERSION)" \
204 --css=$(POD_CSS_URL) \
206 $(srcdir)/dumpcap.pod > dumpcap.html
208 androiddump.html: androiddump.pod ../config.h $(top_srcdir)/docbook/ws.css
209 $(AM_V_POD2HTML)$(POD2HTML) \
210 --title="androiddump - The Wireshark Network Analyzer $(VERSION)" \
211 --css=$(POD_CSS_URL) \
213 $(srcdir)/androiddump.pod > androiddump.html
215 rawshark.html: rawshark.pod ../config.h $(top_srcdir)/docbook/ws.css
216 $(AM_V_POD2HTML)$(POD2HTML) \
217 --title="rawshark - The Wireshark Network Analyzer $(VERSION)" \
218 --css=$(POD_CSS_URL) \
220 $(srcdir)/rawshark.pod > rawshark.html
222 dftest.html: dftest.pod ../config.h $(top_srcdir)/docbook/ws.css
223 $(AM_V_POD2HTML)$(POD2HTML) \
224 --title="dftest - The Wireshark Network Analyzer $(VERSION)" \
225 --css=$(POD_CSS_URL) \
227 $(srcdir)/dftest.pod > dftest.html
229 randpkt.html: randpkt.pod ../config.h $(top_srcdir)/docbook/ws.css
230 $(AM_V_POD2HTML)$(POD2HTML) \
231 --title="randpkt - The Wireshark Network Analyzer $(VERSION)" \
232 --css=$(POD_CSS_URL) \
234 $(srcdir)/randpkt.pod > randpkt.html
247 AUTHORS-SHORT-FORMAT \
250 MAINTAINERCLEANFILES = \
258 README.display_filter \
267 README.request_response_tracking\
285 make-authors-format.pl \
286 make-authors-short.pl \
288 packet-PROTOABBREV.c \
297 wireshark-filter.pod \
298 wireshark.pod.template