# Makefile.am
# Automake file for Ethereal documentation
#
# $Id: Makefile.am,v 1.26 2004/06/27 17:56:15 gerald Exp $
#
# 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.

ethereal-tmp.pod: $(srcdir)/ethereal.pod $(top_srcdir)/AUTHORS-SHORT
	cat $(srcdir)/ethereal.pod $(top_srcdir)/AUTHORS-SHORT > ethereal-tmp.pod

../ethereal.1: ethereal-tmp.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.1: tethereal.pod ../config.h
	$(POD2MAN)                     \
	--center="The Ethereal Network Analyzer" \
	--release=$(VERSION)			 \
	$(srcdir)/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-filter.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
	../tethereal -G fields | $(PERL) $(srcdir)/dfilter2pod.pl $(srcdir)/ethereal-filter.pod.template > ethereal-filter.pod

../editcap.1: editcap.pod ../config.h
	$(POD2MAN)                      \
	--center="The Ethereal Network Analyzer" \
	--release=$(VERSION)			 \
	$(srcdir)/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)			 \
	$(srcdir)/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)			 \
	$(srcdir)/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)			 \
	$(srcdir)/text2pcap.pod > ../text2pcap.1

../text2pcap.html: text2pcap.pod ../config.h
	$(POD2HTML)                     \
	--title="text2pcap - The Ethereal Network Analyzer $(VERSION)" \
	--noindex                                 \
	text2pcap.pod > ../text2pcap.html

CLEANFILES =		\
	ethereal-filter.pod \
	ethereal-tmp.pod \
	../ethereal-filter.4 \
	../ethereal-filter.html \
	../ethereal.1	\
	../ethereal.html	\
	../editcap.1	\
	../editcap.html	\
	../mergecap.1	\
	../mergecap.html	\
	../tethereal.1	\
	../tethereal.html	\
	../text2pcap.1	\
	../text2pcap.html	\
	../idl2eth.1	\
	../idl2eth.html

DISTCLEANFILES =	\
	pod2htmi.tmp	\
	pod2htmd.tmp	\
	*~
