From Lars Roland: add support for building a libethereal.dll with MSVC:
[obnox/wireshark/wip.git] / doc / Makefile.nmake
1 # Makefile.nmake
2 # Nmake file for Ethereal documentation
3 #
4 # $Id: Makefile.nmake,v 1.14 2004/05/09 10:03:39 guy Exp $
5 #
6 # Ethereal - Network traffic analyzer
7 # By Gerald Combs <gerald@ethereal.com>
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 editcap.html \
30         idl2eth.html mergecap.html text2pcap.html
31
32 ethereal.1: ethereal.pod ../config.h
33         $(POD2MAN)                     \
34         --center="The Ethereal Network Analyzer" \
35         --release=$(VERSION)                     \
36          ethereal.pod > ethereal.1
37
38 ethereal.html: ethereal.pod ../config.h
39         $(POD2HTML)                    \
40         --title="The Ethereal Network Analyzer $(VERSION)" \
41         --noindex                                 \
42         ethereal.pod > ethereal.html
43
44 ../tethereal.exe:
45         cd ..
46         $(MAKE) -f makefile.nmake tethereal.exe
47         cd doc
48
49 tethereal.1: tethereal.pod ../config.h
50         $(POD2MAN)                     \
51         --center="The Ethereal Network Analyzer" \
52         --release=$(VERSION)                     \
53         tethereal.pod > tethereal.1
54
55 tethereal.html: tethereal.pod ../config.h
56         $(POD2HTML)                    \
57         --title="tethereal - The Ethereal Network Analyzer $(VERSION)" \
58         --noindex                                 \
59         tethereal.pod > tethereal.html
60
61 ethereal-filter.4: ethereal-filter.pod ../config.h
62         $(POD2MAN)                     \
63         --center="The Ethereal Network Analyzer" \
64         --release=$(VERSION)                     \
65         ethereal-filter.pod > ethereal.4
66
67 ethereal-filter.html: ethereal-filter.pod ../config.h
68         $(POD2HTML)                    \
69         --title="ethereal-filter - The Ethereal Network Analyzer $(VERSION)" \
70         --noindex                                 \
71         ethereal-filter.pod > ethereal-filter.html
72
73 ethereal-filter.pod: ethereal-filter.pod.template  ../tethereal.exe
74         cd ..
75         cp --update --preserve wiretap/wiretap-$(WTAP_VERSION).dll wiretap-$(WTAP_VERSION).dll
76 !IFDEF ENABLE_LIBETHEREAL
77         cp --update --preserve epan/libethereal.dll libethereal.dll
78 !ENDIF
79         tethereal.exe -G | $(PERL) doc\dfilter2pod.pl doc\ethereal-filter.pod.template > doc\ethereal-filter.pod
80         rm -f libethereal.dll wiretap-$(WTAP_VERSION).dll
81         cd doc
82
83 editcap.1: editcap.pod ../config.h
84         $(POD2MAN)                      \
85         --center="The Ethereal Network Analyzer" \
86         --release=$(VERSION)                     \
87         editcap.pod > editcap.1
88
89 editcap.html: editcap.pod ../config.h
90         $(POD2HTML)                     \
91         --title="editcap - The Ethereal Network Analyzer $(VERSION)" \
92         --noindex                                 \
93         editcap.pod > editcap.html
94
95 idl2eth.1: idl2eth.pod ../config.h
96         $(POD2MAN)                      \
97         --center="The Ethereal Network Analyzer" \
98         --release=$(VERSION)                     \
99         idl2eth.pod > idl2eth.1
100
101 idl2eth.html: idl2eth.pod ../config.h
102         $(POD2HTML)                     \
103         --title="idl2eth - The Ethereal Network Analyzer $(VERSION)" \
104         --noindex                                 \
105         idl2eth.pod > idl2eth.html
106
107 mergecap.1: mergecap.pod ../config.h
108         $(POD2MAN)                      \
109         --center="The Ethereal Network Analyzer" \
110         --release=$(VERSION)                     \
111         mergecap.pod > mergecap.1
112
113 mergecap.html: mergecap.pod ../config.h
114         $(POD2HTML)                     \
115         --title="mergecap - The Ethereal Network Analyzer $(VERSION)" \
116         --noindex                                 \
117         mergecap.pod > mergecap.html
118
119 text2pcap.1: text2pcap.pod ../config.h
120         $(POD2MAN)                      \
121         --center="The Ethereal Network Analyzer" \
122         --release=$(VERSION)                     \
123         text2pcap.pod > text2pcap.1
124
125 text2pcap.html: text2pcap.pod ../config.h
126         $(POD2HTML)                     \
127         --title="text2pcap - The Ethereal Network Analyzer $(VERSION)" \
128         --noindex                                 \
129         text2pcap.pod > text2pcap.html
130
131 clean:
132         rm -f ethereal.html ethereal.1
133         rm -f tethereal.html tethereal.1
134         rm -f ethereal-filter.html ethereal-filter.4 ethereal-filter.pod
135         rm -f editcap.html editcap.1
136         rm -f idl2eth.html idl2eth.1
137         rm -f mergecap.html mergecap.1
138         rm -f text2pcap.html text2pcap.1
139         rm -f pod2htm*
140
141 distclean: clean