197 lines
5.8 KiB
Makefile
197 lines
5.8 KiB
Makefile
# Makefile.am
|
|
# Automake file for Wireshark documentation
|
|
#
|
|
# $Id$
|
|
#
|
|
# Wireshark - Network traffic analyzer
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
# 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.
|
|
|
|
#
|
|
# This is a hideous hack.
|
|
#
|
|
# Automake needs to know into which sections to install various man
|
|
# pages; if the names in "man_MANS" have suffixes, it can infer the
|
|
# sections from the name (e.g., "hello.1" goes in section 1), but if
|
|
# they don't have suffixes, it can't tell what sections to put them, and
|
|
# it just gives up and doesn't create any rules to install them (and it
|
|
# gives up silently, so you have no clue what's wrong).
|
|
#
|
|
# Therefore, we can't just set "man_MANS" to a list of variables to be
|
|
# filled in by the configure script, as those variables don't have man
|
|
# page section numbers.
|
|
#
|
|
# It turns out (although this is not documented anywhere I could find
|
|
# in the automake Info file) that if you define, instead, variables with
|
|
# names like "man{section}_MANS", automake will infer that the names in
|
|
# those variables are the names of man pages to be installed in section
|
|
# "{section}".
|
|
#
|
|
# So we define "man1_MANS" to contain all the section 1 man pages and
|
|
# man4_MANS for the (one) section 4 man page.
|
|
#
|
|
# *However*, if "man_MANS" isn't defined at all, automake concludes that
|
|
# there are no man pages, the fact that, say, "man1_MANS" is defined
|
|
# nonwithstanding! (I suspect this is the result of a mistaken attempt
|
|
# to get people to fix their automake files not to use "MANS"; if "MANS"
|
|
# is defined, it prints a warning and sets the exit status, but doesn't
|
|
# exit, and then it just gives up if "man_MANS" isn't defined,
|
|
# presumably on the theory that the only reason it wouldn't be defined
|
|
# is because the automake file uses the obsolete "MANS" variable instead
|
|
# of the shiny new "man_MANS" variable.)
|
|
#
|
|
# So we also define "man_MANS", but don't define it as anything;
|
|
# automake will arrange that the Makefile define it as the union of all
|
|
# the "man{section}_MANS" variables.
|
|
#
|
|
man1_MANS = \
|
|
@wireshark_man@ \
|
|
@tshark_man@ \
|
|
@text2pcap_man@ \
|
|
@mergecap_man@ \
|
|
@capinfos_man@ \
|
|
@editcap_man@ \
|
|
@dumpcap_man@ \
|
|
@idl2wrs_man@ \
|
|
@rawshark_man@
|
|
man4_MANS = @wiresharkfilter_man@
|
|
man_MANS =
|
|
|
|
pkgdata_DATA = AUTHORS-SHORT $(top_srcdir)/docbook/ws.css wireshark.html \
|
|
tshark.html wireshark-filter.html capinfos.html editcap.html \
|
|
idl2wrs.html mergecap.html text2pcap.html dumpcap.html rawshark.html
|
|
|
|
#
|
|
# Build the short version of the authors file for the about dialog
|
|
#
|
|
AUTHORS-SHORT: $(top_srcdir)/AUTHORS $(srcdir)/make-authors-short.pl
|
|
$(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(top_srcdir)/AUTHORS > AUTHORS-SHORT
|
|
|
|
# Put a copy in the top-level directory so Help->About, when run from the
|
|
# build directory, can find it.
|
|
../AUTHORS-SHORT: AUTHORS-SHORT
|
|
cp AUTHORS-SHORT ..
|
|
|
|
#
|
|
# Build the short version of the authors file with formatting codes for the
|
|
# man page
|
|
# (Depending on ../AUTHORS-SHORT is a bit of a hack to get the file copied
|
|
# down there.)
|
|
#
|
|
AUTHORS-SHORT-FORMAT: ../AUTHORS-SHORT $(srcdir)/make-authors-format.pl
|
|
$(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
|
|
|
|
wireshark.pod: $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT
|
|
cat $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT > wireshark.pod
|
|
|
|
.pod.1:
|
|
$(POD2MAN) \
|
|
--center="The Wireshark Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
$< > $@
|
|
|
|
.pod.4:
|
|
$(POD2MAN) \
|
|
--section=4 \
|
|
--center="The Wireshark Network Analyzer" \
|
|
--release=$(VERSION) \
|
|
$< > $@
|
|
|
|
.pod.html:
|
|
$(POD2HTML) \
|
|
--title="tshark - The Wireshark Network Analyzer $(VERSION)" \
|
|
--css=$(top_srcdir)/docbook/ws.css \
|
|
--noindex \
|
|
$< > $@
|
|
|
|
wireshark-filter.pod: wireshark-filter.pod.template ../tshark
|
|
WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ../tshark -G fields | \
|
|
$(PERL) $(srcdir)/dfilter2pod.pl $(srcdir)/wireshark-filter.pod.template > wireshark-filter.pod
|
|
|
|
CLEANFILES = \
|
|
wireshark-filter.pod \
|
|
wireshark.pod \
|
|
wireshark-filter.4 \
|
|
wireshark-filter.html \
|
|
wireshark.1 \
|
|
wireshark.html \
|
|
capinfos.1 \
|
|
capinfos.html \
|
|
editcap.1 \
|
|
editcap.html \
|
|
mergecap.1 \
|
|
mergecap.html \
|
|
tshark.1 \
|
|
tshark.html \
|
|
text2pcap.1 \
|
|
text2pcap.html \
|
|
dumpcap.1 \
|
|
dumpcap.html \
|
|
idl2wrs.1 \
|
|
idl2wrs.html \
|
|
rawshark.1 \
|
|
rawshark.html
|
|
|
|
DISTCLEANFILES = \
|
|
pod2htmi.tmp \
|
|
pod2htmd.tmp \
|
|
AUTHORS-SHORT \
|
|
../AUTHORS-SHORT \
|
|
AUTHORS-SHORT-FORMAT \
|
|
*~
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
Makefile.in
|
|
|
|
EXTRA_DIST = \
|
|
Makefile.nmake \
|
|
README.binarytrees \
|
|
README.capture \
|
|
README.design \
|
|
README.developer \
|
|
README.display_filter \
|
|
README.idl2wrs \
|
|
README.malloc \
|
|
README.packaging \
|
|
README.plugins \
|
|
README.python \
|
|
README.regression \
|
|
README.request_response_tracking \
|
|
README.stats_tree \
|
|
README.tapping \
|
|
README.xml-output \
|
|
make-authors-format.pl \
|
|
make-authors-short.pl \
|
|
perlnoutf.pl \
|
|
capinfos.pod \
|
|
dfilter2pod.pl \
|
|
dumpcap.pod \
|
|
editcap.pod \
|
|
eproto2sgml \
|
|
idl2wrs.pod \
|
|
mergecap.pod \
|
|
randpkt.txt \
|
|
rawshark.pod \
|
|
sgml.doc.template \
|
|
text2pcap.pod \
|
|
tshark.pod \
|
|
wireshark-filter.pod.template \
|
|
wireshark.pod.template
|