forked from osmocom/wireshark
![Guy Harris](/assets/img/avatar_default.png)
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. svn path=/trunk/; revision=13402
169 lines
5.3 KiB
Makefile
169 lines
5.3 KiB
Makefile
# Makefile.nmake
|
|
# Nmake file for Ethereal documentation
|
|
#
|
|
# $Id$
|
|
#
|
|
# Ethereal - Network traffic analyzer
|
|
# By Gerald Combs <gerald@ethereal.com>
|
|
# Copyright 1998 Gerald Combs
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
# We include dependencies on ../config.h in order to
|
|
# capture when $(VERSION) changes.
|
|
|
|
include ../config.nmake
|
|
|
|
doc: ethereal.html tethereal.html ethereal-filter.html capinfos.html \
|
|
editcap.html idl2eth.html mergecap.html text2pcap.html
|
|
|
|
man: ethereal.1 tethereal.1 ethereal-filter.4 capinfos.1 editcap.1 \
|
|
idl2eth.1 mergecap.1 text2pcap.1
|
|
|
|
ethereal-tmp.pod: ethereal.pod ../AUTHORS-SHORT-FORMAT
|
|
copy /B ethereal.pod + ..\AUTHORS-SHORT-FORMAT ethereal-tmp.pod
|
|
|
|
../AUTHORS-SHORT-FORMAT:
|
|
cd ..
|
|
$(MAKE) -f makefile.nmake AUTHORS-SHORT-FORMAT
|
|
cd doc
|
|
|
|
ethereal.1: ethereal.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
ethereal-tmp.pod > ethereal.1
|
|
|
|
ethereal.html: ethereal-tmp.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
ethereal-tmp.pod > ethereal.html
|
|
|
|
../tethereal.exe:
|
|
cd ..
|
|
$(MAKE) -f makefile.nmake tethereal.exe
|
|
cd doc
|
|
|
|
tethereal.1: tethereal.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
tethereal.pod > tethereal.1
|
|
|
|
tethereal.html: tethereal.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="tethereal - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
tethereal.pod > tethereal.html
|
|
|
|
ethereal-filter.4: ethereal-filter.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
ethereal-filter.pod > ethereal.4
|
|
|
|
ethereal-filter.html: ethereal-filter.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="ethereal-filter - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
ethereal-filter.pod > ethereal-filter.html
|
|
|
|
ethereal-filter.pod: ethereal-filter.pod.template ../tethereal.exe
|
|
cd ..
|
|
xcopy wiretap\wiretap-$(WTAP_VERSION).dll . /d /y
|
|
!IFDEF ENABLE_LIBETHEREAL
|
|
xcopy epan\libethereal.dll . /d /y
|
|
!ENDIF
|
|
tethereal.exe -G | $(PERL) doc\dfilter2pod.pl doc\ethereal-filter.pod.template > doc\ethereal-filter.pod
|
|
rm -f libethereal.dll wiretap-$(WTAP_VERSION).dll
|
|
cd doc
|
|
|
|
capinfos.1: capinfos.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
capinfos.pod > capinfos.1
|
|
|
|
capinfos.html: capinfos.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="capinfos - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
capinfos.pod > capinfos.html
|
|
|
|
|
|
editcap.1: editcap.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
editcap.pod > editcap.1
|
|
|
|
editcap.html: editcap.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="editcap - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
editcap.pod > editcap.html
|
|
|
|
idl2eth.1: idl2eth.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
idl2eth.pod > idl2eth.1
|
|
|
|
idl2eth.html: idl2eth.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="idl2eth - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
idl2eth.pod > idl2eth.html
|
|
|
|
mergecap.1: mergecap.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
mergecap.pod > mergecap.1
|
|
|
|
mergecap.html: mergecap.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="mergecap - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
mergecap.pod > mergecap.html
|
|
|
|
text2pcap.1: text2pcap.pod ../config.h
|
|
$(POD2MAN) \
|
|
--center="The Ethereal Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
text2pcap.pod > text2pcap.1
|
|
|
|
text2pcap.html: text2pcap.pod ../config.h
|
|
$(POD2HTML) \
|
|
--title="text2pcap - The Ethereal Network Analyzer $(VERSION)" \
|
|
--noindex \
|
|
text2pcap.pod > text2pcap.html
|
|
|
|
clean:
|
|
rm -f ethereal.html ethereal.1 ethereal-tmp.pod
|
|
rm -f tethereal.html tethereal.1
|
|
rm -f ethereal-filter.html ethereal-filter.4 ethereal-filter.pod
|
|
rm -f capinfos.html capinfos.1
|
|
rm -f editcap.html editcap.1
|
|
rm -f idl2eth.html idl2eth.1
|
|
rm -f mergecap.html mergecap.1
|
|
rm -f text2pcap.html text2pcap.1
|
|
rm -f pod2htm*
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|