2004-08-06 21:06:27 +00:00
|
|
|
#
|
2006-06-06 23:08:58 +00:00
|
|
|
# Make the "Wireshark User Guide" and "Wireshark Developer Guide"
|
|
|
|
# in several formats.
|
2004-08-06 21:06:27 +00:00
|
|
|
# See the Readme.txt file for instructions.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2004-08-22 09:16:01 +00:00
|
|
|
# formatting objects processor
|
2005-03-04 13:24:47 +00:00
|
|
|
# Additional options to fop.
|
|
|
|
# This needs to contain at least the argument '-Xmx256m'
|
2010-02-10 22:12:22 +00:00
|
|
|
FOP_OPTS=-Xmx256m
|
2006-06-02 13:15:40 +00:00
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
# fop executable is found in configure.in .
|
|
|
|
# XXX - have it check for the right version (0.20.5 or newer)?
|
2004-08-22 09:10:12 +00:00
|
|
|
|
2006-09-12 09:35:29 +00:00
|
|
|
# html to text converter for text version of release notes, e.g. elinks.
|
2005-12-27 22:22:14 +00:00
|
|
|
# This could also be "lynx", or "true" if neither elinks nor lynx is installed
|
2007-08-18 15:48:10 +00:00
|
|
|
# (See Bug # 1446 for note re 'force-html' below)
|
2010-02-10 22:12:22 +00:00
|
|
|
# Sorry about the indenting, but that's what automake requires...
|
|
|
|
if HAVE_ELINKS
|
|
|
|
HTML2TXT=$(ELINKS) -dump -dump-width 72
|
2010-04-05 21:04:37 +00:00
|
|
|
## links: -dump requires 'url' argument (as opposed to elinks & lynx)
|
|
|
|
## (Rather than fixing things we'll just disable the use of links).
|
|
|
|
##else
|
|
|
|
##if HAVE_LINKS
|
|
|
|
##HTML2TXT=$(LINKS) -dump -width 72
|
2010-02-10 22:12:22 +00:00
|
|
|
else
|
|
|
|
if HAVE_LYNX
|
|
|
|
HTML2TXT=$(LYNX) -dump -width=72 -nolist -stdin -force-html
|
|
|
|
else
|
|
|
|
HTML2TXT="true"
|
|
|
|
endif
|
2010-04-05 21:04:37 +00:00
|
|
|
##endif
|
2010-02-10 22:12:22 +00:00
|
|
|
endif
|
2007-01-29 22:15:13 +00:00
|
|
|
|
2004-08-22 09:16:01 +00:00
|
|
|
############### YOU SHOULDN'T HAVE TO EDIT ANYTHING BELOW THIS LINE! ################
|
2004-08-22 09:10:12 +00:00
|
|
|
|
2007-01-29 22:15:13 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2005-03-12 11:10:23 +00:00
|
|
|
# Automatically generate .pdf files from .fo files
|
2007-01-16 12:16:56 +00:00
|
|
|
# Suse needs FOP_OPTS, Debian needs JAVA_OPTS
|
2005-03-12 11:10:23 +00:00
|
|
|
.fo.pdf:
|
2010-02-10 22:12:22 +00:00
|
|
|
if HAVE_FOP
|
2007-01-28 21:26:13 +00:00
|
|
|
FOP_OPTS=$(FOP_OPTS) JAVA_OPTS=$(FOP_OPTS) $(FOP) $< $@
|
2010-02-10 22:12:22 +00:00
|
|
|
else
|
|
|
|
false
|
|
|
|
endif
|
2005-03-12 11:10:23 +00:00
|
|
|
|
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
if HAVE_XSLTPROC
|
2010-02-12 07:54:14 +00:00
|
|
|
ALL_TARGETS=svn_version_check wsug wsdg release_notes
|
2010-02-10 22:12:22 +00:00
|
|
|
else
|
|
|
|
# if we don't have XSLTPROC, there's nothing to do...
|
|
|
|
ALL_TARGETS=svn_version_check
|
|
|
|
endif
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
all: $(ALL_TARGETS)
|
2004-10-30 12:54:53 +00:00
|
|
|
|
2005-01-29 15:38:15 +00:00
|
|
|
#
|
|
|
|
# on every build, record the working copy revision string
|
|
|
|
#
|
2005-02-20 07:25:58 +00:00
|
|
|
# FORCE is the portable version of .PHONY
|
|
|
|
FORCE:
|
|
|
|
|
2006-09-07 20:01:07 +00:00
|
|
|
svn_version_check: FORCE
|
2010-02-10 22:12:22 +00:00
|
|
|
cat $(srcdir)/check_svn_version.sh | tr -d '\015' | /bin/bash
|
2006-09-07 20:01:07 +00:00
|
|
|
|
|
|
|
svn_version.xml: svn_version_check
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2009-12-01 07:27:03 +00:00
|
|
|
# Wireshark User Guide
|
2010-02-10 22:12:22 +00:00
|
|
|
if HAVE_FOP
|
2010-02-12 07:54:14 +00:00
|
|
|
WSUG_TARGETS=wsug.validated wsug_html_chunked user-guide.html user-guide-a4.pdf user-guide-us.pdf
|
2010-02-10 22:12:22 +00:00
|
|
|
else
|
2010-02-12 07:54:14 +00:00
|
|
|
WSUG_TARGETS=wsug.validated wsug_html_chunked user-guide.html
|
2010-02-10 22:12:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
wsug: $(WSUG_TARGETS)
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
# validate the content
|
2010-02-10 22:12:22 +00:00
|
|
|
wsug.validated: $(WSUG_SOURCE) wsluarm
|
2010-02-12 07:54:14 +00:00
|
|
|
if HAVE_XMLLINT
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - VALIDATING XML ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
2010-02-12 07:54:14 +00:00
|
|
|
else
|
|
|
|
@ echo --- WSUG - SKIP VALIDATION ---
|
|
|
|
endif
|
2004-08-06 21:06:27 +00:00
|
|
|
|
|
|
|
# create html single page file
|
2006-09-07 20:01:07 +00:00
|
|
|
user-guide.html: wsug_html/user-guide.html
|
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
wsug_html/user-guide.html: $(WSUG_SOURCE) wsluarm
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - HTML SINGLE PAGE ---
|
2006-06-15 14:18:03 +00:00
|
|
|
mkdir -p wsug_html/wsug_graphics/toolbar
|
2010-02-10 22:12:22 +00:00
|
|
|
cp $(srcdir)/wsug_graphics/*.* wsug_html/wsug_graphics
|
|
|
|
cp $(srcdir)/wsug_graphics/toolbar/* wsug_html/wsug_graphics/toolbar
|
|
|
|
cp $(srcdir)/ws.css wsug_html
|
|
|
|
$(XSLTPROC) --stringparam base.dir wsug_html/ --stringparam use.id.as.filename 1 \
|
|
|
|
--stringparam admon.graphics 1 --stringparam admon.graphics.path wsug_graphics/ \
|
|
|
|
--stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 \
|
2010-02-12 07:54:14 +00:00
|
|
|
--stringparam html.stylesheet ws.css \
|
|
|
|
--nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< > $@
|
2006-05-30 21:34:56 +00:00
|
|
|
-chmod -R og+rX wsug_html
|
2006-09-07 20:01:07 +00:00
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
# create html chunked page files
|
2006-09-07 20:01:07 +00:00
|
|
|
wsug_html_chunked: wsug_html_chunked/index.html
|
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
wsug_html_chunked/index.html: $(WSUG_SOURCE) wsluarm
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - HTML CHUNKED ---
|
2006-06-15 14:18:03 +00:00
|
|
|
mkdir -p wsug_html_chunked/wsug_graphics/toolbar
|
2010-02-10 22:12:22 +00:00
|
|
|
cp $(srcdir)/wsug_graphics/*.* wsug_html_chunked/wsug_graphics
|
|
|
|
cp $(srcdir)/wsug_graphics/toolbar/* wsug_html_chunked/wsug_graphics/toolbar
|
|
|
|
cp $(srcdir)/ws.css wsug_html_chunked
|
|
|
|
$(XSLTPROC) --stringparam base.dir wsug_html_chunked/ --stringparam use.id.as.filename 1 \
|
|
|
|
--stringparam admon.graphics 1 --stringparam admon.graphics.path wsug_graphics/ \
|
2010-02-12 07:54:14 +00:00
|
|
|
--stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 \
|
|
|
|
--stringparam html.stylesheet ws.css \
|
|
|
|
--nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl $<
|
2006-05-30 21:34:56 +00:00
|
|
|
-chmod -R og+rX wsug_html_chunked
|
2004-08-06 21:06:27 +00:00
|
|
|
|
2009-12-01 07:27:03 +00:00
|
|
|
# create pdf file (through XSL-FO), portrait pages on US letter paper
|
2004-08-06 21:06:27 +00:00
|
|
|
# you will get lot's of errors, but that's ok
|
2010-02-10 22:12:22 +00:00
|
|
|
user-guide-us.fo: $(WSUG_SOURCE) custom_layer_pdf.xsl wsluarm
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - PDF US PAPER ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XSLTPROC) --stringparam paper.type letter --nonet custom_layer_pdf.xsl $< > $@
|
2004-08-06 21:06:27 +00:00
|
|
|
|
|
|
|
# create pdf file (through XSL-FO), portrait pages on A4 paper
|
|
|
|
# you will get lot's of errors, but that's ok
|
2010-02-10 22:12:22 +00:00
|
|
|
user-guide-a4.fo: $(WSUG_SOURCE) custom_layer_pdf.xsl wsluarm
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - PDF A4 PAPER ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl $< > $@
|
2004-08-06 21:06:27 +00:00
|
|
|
|
2009-12-01 07:27:03 +00:00
|
|
|
wsluarm: make-wsluarm.pl $(WSLUA_MODULES)
|
2010-02-10 22:12:22 +00:00
|
|
|
mkdir -p wsluarm_src
|
|
|
|
$(PERL) $(srcdir)/make-wsluarm.pl $(WSLUA_MODULES)
|
2009-12-01 07:27:03 +00:00
|
|
|
touch wsluarm
|
|
|
|
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2009-12-01 07:27:03 +00:00
|
|
|
# Wireshark Developer Guide
|
2010-02-10 22:12:22 +00:00
|
|
|
if HAVE_FOP
|
2010-02-12 07:54:14 +00:00
|
|
|
WSDG_TARGETS=wsdg.validated wsdg_html_chunked developer-guide.html developer-guide-a4.pdf developer-guide-us.pdf
|
2010-02-10 22:12:22 +00:00
|
|
|
else
|
2010-02-12 07:54:14 +00:00
|
|
|
WSDG_TARGETS=wsdg.validated wsdg_html_chunked developer-guide.html
|
2010-02-10 22:12:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
wsdg: $(WSDG_TARGETS)
|
2004-10-30 12:54:53 +00:00
|
|
|
|
2004-08-17 17:09:14 +00:00
|
|
|
# validate the content
|
2006-06-06 23:08:58 +00:00
|
|
|
wsdg.validated: $(WSDG_SOURCE)
|
2010-02-12 07:54:14 +00:00
|
|
|
if HAVE_XMLLINT
|
2006-06-06 23:08:58 +00:00
|
|
|
@ echo --- WSDG - VALIDATING XML ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
2010-02-12 07:54:14 +00:00
|
|
|
else
|
|
|
|
@ echo --- WSDG - SKIP VALIDATION ---
|
|
|
|
endif
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2004-08-21 16:30:04 +00:00
|
|
|
# create html single page file
|
2006-09-07 20:01:07 +00:00
|
|
|
developer-guide.html: wsdg_html/developer-guide.html
|
|
|
|
|
|
|
|
wsdg_html/developer-guide.html: $(WSDG_SOURCE)
|
2006-06-06 23:08:58 +00:00
|
|
|
@ echo --- WSDG - HTML SINGLE PAGE ---
|
|
|
|
mkdir -p wsdg_html/wsdg_graphics
|
2010-02-10 22:12:22 +00:00
|
|
|
cp $(srcdir)/wsdg_graphics/* wsdg_html/wsdg_graphics
|
|
|
|
cp $(srcdir)/ws.css wsdg_html
|
|
|
|
$(XSLTPROC) --stringparam base.dir wsdg_html/ --stringparam use.id.as.filename 1 \
|
|
|
|
--stringparam admon.graphics 1 --stringparam admon.graphics.path wsdg_graphics/ \
|
|
|
|
--stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 \
|
2010-02-12 07:54:14 +00:00
|
|
|
--stringparam html.stylesheet ws.css \
|
|
|
|
--nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< > $@
|
2006-06-06 23:08:58 +00:00
|
|
|
-chmod -R og+rX wsdg_html
|
2006-09-07 20:01:07 +00:00
|
|
|
|
2004-08-17 17:09:14 +00:00
|
|
|
# create html chunked page files
|
2006-09-07 20:01:07 +00:00
|
|
|
wsdg_html_chunked: wsdg_html_chunked/index.html
|
|
|
|
|
|
|
|
wsdg_html_chunked/index.html: $(WSDG_SOURCE)
|
2006-06-06 23:08:58 +00:00
|
|
|
@ echo --- WSDG - HTML CHUNKED ---
|
|
|
|
mkdir -p wsdg_html_chunked/wsdg_graphics
|
2010-02-10 22:12:22 +00:00
|
|
|
cp $(srcdir)/wsdg_graphics/* wsdg_html_chunked/wsdg_graphics
|
|
|
|
cp $(srcdir)/ws.css wsdg_html_chunked
|
|
|
|
$(XSLTPROC) --stringparam base.dir wsdg_html_chunked/ --stringparam use.id.as.filename 1 \
|
|
|
|
--stringparam admon.graphics 1 --stringparam admon.graphics.path wsdg_graphics/ \
|
|
|
|
--stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 \
|
2010-02-12 07:54:14 +00:00
|
|
|
--stringparam html.stylesheet ws.css \
|
|
|
|
--nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl $<
|
2006-06-06 23:08:58 +00:00
|
|
|
-chmod -R og+rX wsdg_html_chunked
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2009-12-01 07:27:03 +00:00
|
|
|
# create pdf file (through XSL-FO), portrait pages on US letter paper
|
2004-08-21 16:30:04 +00:00
|
|
|
# you will get lot's of errors, but that's ok
|
2006-09-08 07:44:22 +00:00
|
|
|
developer-guide-us.fo: $(WSDG_SOURCE) custom_layer_pdf.xsl
|
2006-06-06 23:08:58 +00:00
|
|
|
@ echo --- WSDG - PDF US PAPER ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XSLTPROC) --stringparam paper.type letter --nonet custom_layer_pdf.xsl $< > $@
|
2004-08-21 16:30:04 +00:00
|
|
|
|
|
|
|
# create pdf file (through XSL-FO), portrait pages on A4 paper
|
|
|
|
# you will get lot's of errors, but that's ok
|
2006-09-08 07:44:22 +00:00
|
|
|
developer-guide-a4.fo: $(WSDG_SOURCE) custom_layer_pdf.xsl
|
2006-06-06 23:08:58 +00:00
|
|
|
@ echo --- WSDG - PDF A4 PAPER ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl $< > $@
|
2004-08-21 16:30:04 +00:00
|
|
|
|
2005-07-28 14:29:19 +00:00
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
if HAVE_FOP
|
2010-02-12 07:54:14 +00:00
|
|
|
RELEASE_NOTES_TARGETS=release_notes.validated release-notes.html release-notes.txt release-notes-a4.pdf release-notes-us.pdf
|
2010-02-10 22:12:22 +00:00
|
|
|
else
|
2010-02-12 07:54:14 +00:00
|
|
|
RELEASE_NOTES_TARGETS=release_notes.validated release-notes.html release-notes.txt
|
2010-02-10 22:12:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
release_notes: $(RELEASE_NOTES_TARGETS)
|
2005-07-28 14:29:19 +00:00
|
|
|
|
|
|
|
# validate the content
|
|
|
|
release_notes.validated: $(RELEASE_NOTES_SOURCE)
|
2010-02-12 07:54:14 +00:00
|
|
|
if HAVE_XMLLINT
|
2005-07-28 14:29:19 +00:00
|
|
|
@ echo --- RELEASE NOTES - VALIDATING XML ---
|
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
2010-02-12 07:54:14 +00:00
|
|
|
else
|
|
|
|
@ echo --- RELEASE NOTES - SKIP VALIDATION ---
|
|
|
|
endif
|
2005-07-28 14:29:19 +00:00
|
|
|
|
|
|
|
# create html single page file
|
|
|
|
release-notes.html: $(RELEASE_NOTES_SOURCE)
|
|
|
|
@ echo --- RELEASE NOTES - HTML ---
|
2009-05-27 18:20:52 +00:00
|
|
|
$(XSLTPROC) --nonet http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $< > $@
|
2005-12-27 22:22:14 +00:00
|
|
|
|
2006-09-15 22:56:15 +00:00
|
|
|
# create txt single page file (through HTML)
|
2005-12-27 22:22:14 +00:00
|
|
|
release-notes.txt: $(RELEASE_NOTES_SOURCE)
|
2006-04-18 00:55:06 +00:00
|
|
|
@ echo --- RELEASE NOTES - TXT ---
|
2010-02-12 07:54:14 +00:00
|
|
|
$(XSLTPROC) --stringparam generate.toc "article nop" \
|
|
|
|
--nonet http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $< | $(HTML2TXT) > $@
|
2007-02-01 18:35:14 +00:00
|
|
|
|
|
|
|
news: release-notes.txt
|
|
|
|
cp release-notes.txt ../NEWS
|
|
|
|
|
2009-12-01 07:27:03 +00:00
|
|
|
# create pdf file (through XSL-FO), portrait pages on US letter paper
|
2005-07-28 14:29:19 +00:00
|
|
|
# you will get lot's of errors, but that's ok
|
2006-09-08 07:44:22 +00:00
|
|
|
release-notes-us.fo: $(RELEASE_NOTES_SOURCE) custom_layer_pdf.xsl
|
2005-07-28 14:29:19 +00:00
|
|
|
@ echo --- RELEASE NOTES - PDF US PAPER ---
|
|
|
|
$(XSLTPROC) --stringparam paper.type letter --nonet custom_layer_pdf.xsl $< > $@
|
|
|
|
|
|
|
|
# create pdf file (through XSL-FO), portrait pages on A4 paper
|
|
|
|
# you will get lot's of errors, but that's ok
|
2006-09-08 07:44:22 +00:00
|
|
|
release-notes-a4.fo: $(RELEASE_NOTES_SOURCE) custom_layer_pdf.xsl
|
2005-07-28 14:29:19 +00:00
|
|
|
@ echo --- RELEASE NOTES - PDF A4 PAPER ---
|
|
|
|
$(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl $< > $@
|
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
clean-local:
|
|
|
|
-rm -rf $(CLEANDIRS)
|
|
|
|
|
2010-05-14 16:27:03 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(WSUG_SOURCE) \
|
|
|
|
$(WSDG_SOURCE) \
|
|
|
|
$(RELEASE_NOTES_SOURCE) \
|
|
|
|
check_svn_version.sh \
|
2010-06-30 23:20:03 +00:00
|
|
|
docbook.vcproj \
|
2011-05-27 12:22:20 +00:00
|
|
|
dfilter2xml.pl \
|
2010-05-14 16:27:03 +00:00
|
|
|
make-wsluarm.pl \
|
2011-05-27 12:22:20 +00:00
|
|
|
README.txt \
|
2010-05-14 16:27:03 +00:00
|
|
|
Makefile.nmake \
|
2011-05-27 13:16:28 +00:00
|
|
|
CMakeLists.txt
|
2007-01-26 18:34:05 +00:00
|
|
|
|
2010-02-10 22:12:22 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
Makefile.in
|
2010-09-23 06:55:08 +00:00
|
|
|
|