Add BASE_PT_ field display types
[metze/wireshark/wip.git] / doc / Makefile.am
index 545f2c03b79c638829dbde5286bcba2f4fb9152b..2a0b7b11e64586d385a3c3ffde84844875c36a12 100644 (file)
@@ -1,25 +1,23 @@
 # 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.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # We include dependencies on ../config.h in order to
 # capture when $(VERSION) changes.
@@ -44,8 +42,8 @@
 # those variables are the names of man pages to be installed in section
 # "{section}".
 #
-# So, as all our man pages go in section 1, we define "man1_MANS" to
-# contain all the man page.
+# 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
 # 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@
+       @wireshark_man@         \
+       @tshark_man@            \
+       @text2pcap_man@         \
+       @mergecap_man@          \
+       @reordercap_man@        \
+       @capinfos_man@          \
+       @editcap_man@           \
+       @dumpcap_man@           \
+       @rawshark_man@          \
+       @dftest_man@            \
+       @randpkt_man@           \
+       @androiddump_man@
 man4_MANS = @wiresharkfilter_man@
 man_MANS =
 
+# Build these in case a developer wants to read them and for the Debian
+# development package.
+# (The former arguably should be in noinst_MANS but it didn't work for me.)
+noinst_DATA = asn2deb.1 asn2deb.html idl2deb.1 idl2deb.html idl2wrs.1 idl2wrs.html
+
 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 
+       mergecap.html reordercap.html text2pcap.html dumpcap.html androiddump.html \
+       rawshark.html dftest.html randpkt.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
+       $(AM_V_GEN)$(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 ..
+       $(AM_V_GEN)cp AUTHORS-SHORT ..
 
 #
 # Build the short version of the authors file with formatting codes for the
@@ -96,169 +103,141 @@ AUTHORS-SHORT: $(top_srcdir)/AUTHORS $(srcdir)/make-authors-short.pl
 # 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
+       $(AM_V_GEN)$(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
+       $(AM_V_GEN)cat $(srcdir)/wireshark.pod.template AUTHORS-SHORT-FORMAT > wireshark.pod
 
-wireshark.1: wireshark.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       wireshark.pod  > wireshark.1
+AM_V_POD2MAN = $(am__v_POD2MAN_@AM_V@)
+am__v_POD2MAN_ = $(am__v_POD2MAN_@AM_DEFAULT_V@)
+am__v_POD2MAN_0 = @echo "  POD2MAN " $@;
+
+AM_V_POD2HTML = $(am__v_POD2HTML_@AM_V@)
+am__v_POD2HTML_ = $(am__v_POD2HTML_@AM_DEFAULT_V@)
+am__v_POD2HTML_0 = @echo "  POD2HTML" $@;
+
+POD_CSS_URL ?= $(top_srcdir)/docbook/ws.css
 
-wireshark.html: wireshark.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                             \
+.pod.1: ../config.h
+       $(AM_V_POD2MAN)$(POD2MAN)                       \
+       --center="The Wireshark Network Analyzer"       \
+       --release=$(VERSION)                            \
+       $< > $@
+
+.pod.html: ../config.h $(top_srcdir)/docbook/ws.css
+       $(AM_V_POD2HTML)$(POD2HTML)                             \
        --title="The Wireshark Network Analyzer $(VERSION)"     \
-       --css=$(top_srcdir)/docbook/ws.css                      \
+       --css=$(POD_CSS_URL)                                    \
        --noindex                                               \
-       wireshark.pod > wireshark.html
+       $< > $@
 
-tshark.1: tshark.pod ../config.h
-       $(POD2MAN)                                      \
+# This rule needs to stay separate because of the --section option.
+wireshark-filter.4: wireshark-filter.pod ../config.h
+       $(AM_V_POD2MAN)$(POD2MAN)                       \
+       --section=4                                     \
        --center="The Wireshark Network Analyzer"       \
        --release=$(VERSION)                            \
-       $(srcdir)/tshark.pod > tshark.1
+       $(srcdir)/wireshark-filter.pod > wireshark-filter.4
 
+# These rules need to stay separate because each man page has a separate
+# title.  Using GNU make's pattern rules would allow these to be removed
+# but at the cost of portability.
 tshark.html: tshark.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                                     \
        --title="tshark - The Wireshark Network Analyzer $(VERSION)"    \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/tshark.pod > tshark.html
 
-wireshark-filter.4: wireshark-filter.pod ../config.h
-       $(POD2MAN)                                      \
-       --section=4                                     \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       wireshark-filter.pod > wireshark-filter.4
-
 wireshark-filter.html: wireshark-filter.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                                             \
+       $(AM_V_POD2HTML)$(POD2HTML)                                             \
        --title="wireshark-filter - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(top_srcdir)/docbook/ws.css                                      \
+       --css=$(POD_CSS_URL)                                                    \
        --noindex                                                               \
-       wireshark-filter.pod > wireshark-filter.html
-
-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
-
-capinfos.1: capinfos.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/capinfos.pod > capinfos.1
+       $(srcdir)/wireshark-filter.pod > wireshark-filter.html
 
 capinfos.html: capinfos.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                                     \
        --title="capinfos - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/capinfos.pod > capinfos.html
 
-editcap.1: editcap.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/editcap.pod > editcap.1
-
 editcap.html: editcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                                     \
        --title="editcap - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/editcap.pod > editcap.html
 
-idl2wrs.1: idl2wrs.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/idl2wrs.pod > idl2wrs.1
-
 idl2wrs.html: idl2wrs.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                                     \
        --title="idl2wrs - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/idl2wrs.pod > idl2wrs.html
 
-mergecap.1: mergecap.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/mergecap.pod > mergecap.1
-
 mergecap.html: mergecap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                                                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                                     \
        --title="mergecap - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/mergecap.pod > mergecap.html
 
-text2pcap.1: text2pcap.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/text2pcap.pod > text2pcap.1
+reordercap.html: reordercap.pod ../config.h $(top_srcdir)/docbook/ws.css
+       $(AM_V_POD2HTML)$(POD2HTML)                                     \
+       --title="reordercap - The Wireshark Network Analyzer $(VERSION)"        \
+       --css=$(POD_CSS_URL)                                            \
+       --noindex                                                       \
+       $(srcdir)/reordercap.pod > reordercap.html
 
 text2pcap.html: text2pcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                     \
        --title="text2pcap - The Wireshark Network Analyzer $(VERSION)" \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/text2pcap.pod > text2pcap.html
 
-dumpcap.1: dumpcap.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/dumpcap.pod > dumpcap.1
-
 dumpcap.html: dumpcap.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                     \
        --title="dumpcap - The Wireshark Network Analyzer $(VERSION)"   \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/dumpcap.pod > dumpcap.html
 
-rawshark.1: rawshark.pod ../config.h
-       $(POD2MAN)                                      \
-       --center="The Wireshark Network Analyzer"       \
-       --release=$(VERSION)                            \
-       $(srcdir)/rawshark.pod > rawshark.1
+androiddump.html: androiddump.pod ../config.h $(top_srcdir)/docbook/ws.css
+       $(AM_V_POD2HTML)$(POD2HTML)                     \
+       --title="androiddump - The Wireshark Network Analyzer $(VERSION)"       \
+       --css=$(POD_CSS_URL)                                            \
+       --noindex                                                       \
+       $(srcdir)/androiddump.pod > androiddump.html
 
 rawshark.html: rawshark.pod ../config.h $(top_srcdir)/docbook/ws.css
-       $(POD2HTML)                     \
+       $(AM_V_POD2HTML)$(POD2HTML)                     \
        --title="rawshark - The Wireshark Network Analyzer $(VERSION)"  \
-       --css=$(top_srcdir)/docbook/ws.css                              \
+       --css=$(POD_CSS_URL)                                            \
        --noindex                                                       \
        $(srcdir)/rawshark.pod > rawshark.html
 
+dftest.html: dftest.pod ../config.h $(top_srcdir)/docbook/ws.css
+       $(AM_V_POD2HTML)$(POD2HTML)                     \
+       --title="dftest - The Wireshark Network Analyzer $(VERSION)"    \
+       --css=$(POD_CSS_URL)                                            \
+       --noindex                                                       \
+       $(srcdir)/dftest.pod > dftest.html
+
+randpkt.html: randpkt.pod ../config.h $(top_srcdir)/docbook/ws.css
+       $(AM_V_POD2HTML)$(POD2HTML)                     \
+       --title="randpkt - The Wireshark Network Analyzer $(VERSION)"   \
+       --css=$(POD_CSS_URL)                                            \
+       --noindex                                                       \
+       $(srcdir)/randpkt.pod > randpkt.html
+
 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
+       wireshark.pod   \
+       *.1             \
+       *.4             \
+       *.html
 
 DISTCLEANFILES =               \
        pod2htmi.tmp            \
@@ -271,37 +250,50 @@ DISTCLEANFILES =          \
 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 \
+EXTRA_DIST =                           \
+       Makefile.nmake                  \
+       README.capture                  \
+       README.design                   \
+       README.developer                \
+       README.display_filter           \
+       README.dissector                \
+       README.epan_child               \
+       README.heuristic                \
+       README.idl2wrs                  \
+       README.packaging                \
+       README.plugins                  \
+       README.qt                       \
+       README.regression               \
+       README.request_response_tracking\
+       README.stats_tree               \
+       README.tapping                  \
+       README.wmem                     \
+       README.wslua                    \
+       README.xml-output               \
+       androiddump.pod                 \
+       asn2deb.pod                     \
+       capinfos.pod                    \
+       captype.pod                     \
+       dfilter2pod.pl                  \
+       dftest.pod                      \
+       dumpcap.pod                     \
+       editcap.pod                     \
+       extcap.pod                      \
+       eproto2sgml                     \
+       idl2deb.pod                     \
+       idl2wrs.pod                     \
+       make-authors-format.pl          \
+       make-authors-short.pl           \
+       mergecap.pod                    \
+       packet-PROTOABBREV.c            \
+       perlnoutf.pl                    \
+       randpkt.pod                     \
+       randpkt.txt                     \
+       rawshark.pod                    \
+       reordercap.pod                  \
+       sgml.doc.template               \
+       text2pcap.pod                   \
+       tshark.pod                      \
+       wireshark-filter.pod            \
        wireshark.pod.template
+