Add ability to create HTML documentation on Windows, if you have

perl and man2html. Don't call this makefile from the parent makefile
as not everyone will want to create documentation.
Add a couple variables to config.nmake to support this.

svn path=/trunk/; revision=3119
This commit is contained in:
Gilbert Ramirez 2001-03-09 03:43:58 +00:00
parent 9c2f1a5005
commit 682dc85b3a
2 changed files with 43 additions and 0 deletions

View File

@ -1,3 +1,6 @@
# $Id: config.nmake,v 1.8 2001/03/09 03:43:56 gram Exp $
VERSION=0.8.16
GTK_VERSION=1.3
GLIB_VERSION=1.3
@ -14,6 +17,7 @@ LOCAL_LDFLAGS=/DEBUG
#PATH=t:\w32-ix86\cygnus\cygwin-b20\H-i586-cygwin32\bin;$(PATH)
PERL=perl
POD2MAN=perl /usr/bin/pod2man
PYTHON=python
LEX=flex
YACC=bison

39
doc/Makefile.nmake Normal file
View File

@ -0,0 +1,39 @@
#
# $Id: Makefile.nmake,v 1.1 2001/03/09 03:43:58 gram Exp $
include ../config.nmake
doc: ethereal.html tethereal.html editcap.html
ethereal.html : ethereal.1
man2html ethereal.1 > $@
tethereal.html : tethereal.1
man2html tethereal.1 > $@
editcap.html : editcap.1
man2html editcap.1 > $@
ethereal.1: ethereal.pod ../config.h
$(POD2MAN) ethereal.pod \
--center="The Ethereal Network Analyzer" \
--release=$(VERSION) \
> ethereal.1
ethereal.pod: ethereal.pod.template ../tethereal.exe
..\\tethereal.exe -G | $(PERL) dfilter2pod.pl ethereal.pod.template > ethereal.pod
tethereal.1: tethereal.pod ../config.h
$(POD2MAN) tethereal.pod \
--center="The Ethereal Network Analyzer" \
--release=$(VERSION) \
> tethereal.1
tethereal.pod: tethereal.pod.template ../tethereal.exe
..\\tethereal.exe -G | $(PERL) dfilter2pod.pl tethereal.pod.template > tethereal.pod
editcap.1: editcap.pod ../config.h
$(POD2MAN) editcap.pod \
--center="The Ethereal Network Analyzer" \
--release=$(VERSION) \
> editcap.1