2 # Automake file for Wireshark help files
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 2003 Gerald Combs
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 # Install the help files in the "help" subdirectory of the data directory.
27 helpdir = $(pkgdatadir)/help
45 MAINTAINERCLEANFILES = \
48 # Try our best to convert the FAQ to text.
49 # The output of html2text.py isn't as pretty as elinks, links, or lynx. If that ever changes, we
50 # can use it exclusively.
51 faq.txt: $(srcdir)/faq.py
52 $(AM_V_GEN)$(srcdir)/faq.py >$@.tmp && \
53 (( command -v elinks > /dev/null && elinks -dump -dump-width 72 -no-numbering -no-references < $@.tmp > $@ ) || \
54 ( command -v links > /dev/null && links -width 72 -html-numbered-links 0 -dump $@.tmp > $@ ) || \
55 ( command -v lynx > /dev/null && lynx -dump -width=72 -nolist -stdin -force-html < $@.tmp > $@ ) || \
56 $(srcdir)/../tools/html2text.py --width=72 --no-links $@.tmp > $@ ) && \