ethereal->wireshark updates
[obnox/wireshark/wip.git] / doc / Makefile.nmake
1 # Makefile.nmake
2 # Nmake file for Wireshark documentation
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9
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.
14
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.
19
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.
23
24 # We include dependencies on ../config.h in order to
25 # capture when $(VERSION) changes.
26
27 include ../config.nmake
28
29 doc: ethereal.html tethereal.html ethereal-filter.html capinfos.html \
30         editcap.html idl2eth.html mergecap.html text2pcap.html dumpcap.html
31
32 man: ethereal.1 tethereal.1 ethereal-filter.4 capinfos.1 editcap.1 \
33         idl2eth.1 mergecap.1 text2pcap.1 dumpcap.1
34
35 ethereal-tmp.pod: ethereal.pod ../AUTHORS-SHORT-FORMAT
36         copy /B ethereal.pod + ..\AUTHORS-SHORT-FORMAT ethereal-tmp.pod
37
38 ../AUTHORS-SHORT-FORMAT:
39         cd ..
40         $(MAKE) -f makefile.nmake AUTHORS-SHORT-FORMAT
41         cd doc
42
43 ethereal.1: ethereal.pod ../config.h
44         $(POD2MAN)                     \
45         --center="The Wireshark Network Analyzer" \
46         --release=$(VERSION)                     \
47         ethereal-tmp.pod > ethereal.1
48
49 ethereal.html: ethereal-tmp.pod ../config.h
50         $(POD2HTML)                    \
51         --title="The Wireshark Network Analyzer $(VERSION)" \
52         --noindex                                 \
53         ethereal-tmp.pod > ethereal.html
54
55 ../tethereal.exe:
56         cd ..
57         $(MAKE) -f makefile.nmake tethereal.exe
58         cd doc
59
60 tethereal.1: tethereal.pod ../config.h
61         $(POD2MAN)                     \
62         --center="The Wireshark Network Analyzer" \
63         --release=$(VERSION)                     \
64         tethereal.pod > tethereal.1
65
66 tethereal.html: tethereal.pod ../config.h
67         $(POD2HTML)                    \
68         --title="tethereal - The Wireshark Network Analyzer $(VERSION)" \
69         --noindex                                 \
70         tethereal.pod > tethereal.html
71
72 ethereal-filter.4: ethereal-filter.pod ../config.h
73         $(POD2MAN)                     \
74         --center="The Wireshark Network Analyzer" \
75         --release=$(VERSION)                     \
76         ethereal-filter.pod > ethereal.4
77
78 ethereal-filter.html: ethereal-filter.pod ../config.h
79         $(POD2HTML)                    \
80         --title="ethereal-filter - The Wireshark Network Analyzer $(VERSION)" \
81         --noindex                                 \
82         ethereal-filter.pod > ethereal-filter.html
83
84 ethereal-filter.pod: ethereal-filter.pod.template  ../tethereal.exe
85         cd ..
86         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-deps
87         tethereal.exe -G | $(PERL) doc\dfilter2pod.pl doc\ethereal-filter.pod.template > doc\ethereal-filter.pod
88         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
89         cd doc
90
91 capinfos.1: capinfos.pod ../config.h
92         $(POD2MAN)                      \
93         --center="The Wireshark Network Analyzer" \
94         --release=$(VERSION)                     \
95         capinfos.pod > capinfos.1
96
97 capinfos.html: capinfos.pod ../config.h
98         $(POD2HTML)                     \
99         --title="capinfos - The Wireshark Network Analyzer $(VERSION)" \
100         --noindex                                 \
101         capinfos.pod > capinfos.html
102
103
104 editcap.1: editcap.pod ../config.h
105         $(POD2MAN)                      \
106         --center="The Wireshark Network Analyzer" \
107         --release=$(VERSION)                     \
108         editcap.pod > editcap.1
109
110 editcap.html: editcap.pod ../config.h
111         $(POD2HTML)                     \
112         --title="editcap - The Wireshark Network Analyzer $(VERSION)" \
113         --noindex                                 \
114         editcap.pod > editcap.html
115
116 idl2eth.1: idl2eth.pod ../config.h
117         $(POD2MAN)                      \
118         --center="The Wireshark Network Analyzer" \
119         --release=$(VERSION)                     \
120         idl2eth.pod > idl2eth.1
121
122 idl2eth.html: idl2eth.pod ../config.h
123         $(POD2HTML)                     \
124         --title="idl2eth - The Wireshark Network Analyzer $(VERSION)" \
125         --noindex                                 \
126         idl2eth.pod > idl2eth.html
127
128 mergecap.1: mergecap.pod ../config.h
129         $(POD2MAN)                      \
130         --center="The Wireshark Network Analyzer" \
131         --release=$(VERSION)                     \
132         mergecap.pod > mergecap.1
133
134 mergecap.html: mergecap.pod ../config.h
135         $(POD2HTML)                     \
136         --title="mergecap - The Wireshark Network Analyzer $(VERSION)" \
137         --noindex                                 \
138         mergecap.pod > mergecap.html
139
140 text2pcap.1: text2pcap.pod ../config.h
141         $(POD2MAN)                      \
142         --center="The Wireshark Network Analyzer" \
143         --release=$(VERSION)                     \
144         text2pcap.pod > text2pcap.1
145
146 text2pcap.html: text2pcap.pod ../config.h
147         $(POD2HTML)                     \
148         --title="text2pcap - The Wireshark Network Analyzer $(VERSION)" \
149         --noindex                                 \
150         text2pcap.pod > text2pcap.html
151
152 dumpcap.1: dumpcap.pod ../config.h
153         $(POD2MAN)                      \
154         --center="The Wireshark Network Analyzer" \
155         --release=$(VERSION)                     \
156         dumpcap.pod > dumpcap.1
157
158 dumpcap.html: dumpcap.pod ../config.h
159         $(POD2HTML)                     \
160         --title="dumpcap - The Wireshark Network Analyzer $(VERSION)" \
161         --noindex                                 \
162         dumpcap.pod > dumpcap.html
163
164 clean:
165         rm -f ethereal.html ethereal.1 ethereal-tmp.pod
166         rm -f tethereal.html tethereal.1
167         rm -f ethereal-filter.html ethereal-filter.4 ethereal-filter.pod
168         rm -f capinfos.html capinfos.1
169         rm -f editcap.html editcap.1
170         rm -f idl2eth.html idl2eth.1
171         rm -f mergecap.html mergecap.1
172         rm -f text2pcap.html text2pcap.1
173         rm -f dumpcap.html dumpcap.1
174         rm -f pod2htm*
175
176 distclean: clean
177
178 maintainer-clean: distclean