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'
|
2006-10-27 19:15:57 +00:00
|
|
|
FOP_OPTS?=-Xmx256m
|
2006-06-02 13:15:40 +00:00
|
|
|
|
|
|
|
# fop executable
|
2007-02-03 02:01:25 +00:00
|
|
|
# Leave these commented out if you don't have fop installed or you
|
2006-06-02 13:15:40 +00:00
|
|
|
# don't want PDF documentation.
|
2007-02-03 02:01:25 +00:00
|
|
|
# (if you have problems with fop, try to use an absolute path here)
|
|
|
|
FOP=fop-0.20.5/fop.sh
|
2006-06-02 13:15:40 +00:00
|
|
|
#
|
2006-09-12 09:35:29 +00:00
|
|
|
# One SUSE 9.1 and newer uncomment the following line (make sure you have
|
|
|
|
# at least fop-0.20.5-71.2)
|
2007-02-05 20:01:31 +00:00
|
|
|
FOP=fop
|
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
|
2006-09-16 12:13:32 +00:00
|
|
|
#HTML2TXT=elinks -dump -dump-width 72
|
2006-09-12 09:35:29 +00:00
|
|
|
#HTML2TXT=links -dump -width 72
|
2007-08-18 15:48:10 +00:00
|
|
|
# (See Bug # 1446 for note re 'force-html' below)
|
|
|
|
HTML2TXT?=lynx -dump -width=72 -nolist -stdin -force-html
|
2006-09-16 12:13:32 +00:00
|
|
|
#HTML2TXT="true"
|
2005-12-27 22:22:14 +00:00
|
|
|
|
2007-01-29 22:15:13 +00:00
|
|
|
|
|
|
|
PERL = perl
|
|
|
|
|
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
|
|
|
|
|
2004-08-22 09:16:01 +00:00
|
|
|
# the XSL processor
|
2006-10-27 19:15:57 +00:00
|
|
|
XSLTPROC?="xsltproc"
|
2004-08-22 09:10:12 +00:00
|
|
|
|
2004-08-22 09:16:01 +00:00
|
|
|
# the XML validator (from the xsltproc package)
|
2006-10-27 19:15:57 +00:00
|
|
|
XMLLINT?="xmllint"
|
2004-08-06 21:06:27 +00:00
|
|
|
|
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:
|
2007-01-28 21:26:13 +00:00
|
|
|
FOP_OPTS=$(FOP_OPTS) JAVA_OPTS=$(FOP_OPTS) $(FOP) $< $@
|
2005-03-12 11:10:23 +00:00
|
|
|
|
|
|
|
|
2007-07-21 15:24:25 +00:00
|
|
|
all: svn_version_check wsug.validated wsdg.validated release_notes.validated wsug wsdg release_notes
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
clean:
|
2005-03-12 11:10:23 +00:00
|
|
|
rm -rf $(CLEANFILES)
|
|
|
|
|
|
|
|
.SUFFIXES: .fo .pdf
|
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
|
2007-02-05 20:01:31 +00:00
|
|
|
cat 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
|
|
|
|
|
|
|
|
2007-07-21 16:25:17 +00:00
|
|
|
wsug: wsug_html_chunked user-guide.html user-guide-a4.pdf user-guide-us.pdf
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
# validate the content
|
2007-07-21 18:24:05 +00:00
|
|
|
wsug.validated: $(WSUG_SOURCE)
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - VALIDATING XML ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
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
|
|
|
|
|
2007-07-21 18:24:05 +00:00
|
|
|
wsug_html/user-guide.html: $(WSUG_SOURCE)
|
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
|
|
|
|
cp wsug_graphics/*.* wsug_html/wsug_graphics
|
|
|
|
cp wsug_graphics/toolbar/* wsug_html/wsug_graphics/toolbar
|
2006-05-30 21:34:56 +00:00
|
|
|
cp ws.css wsug_html
|
2006-09-07 20:01:07 +00:00
|
|
|
$(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 --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
|
|
|
|
|
2007-07-21 18:24:05 +00:00
|
|
|
wsug_html_chunked/index.html: $(WSUG_SOURCE)
|
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
|
|
|
|
cp wsug_graphics/*.* wsug_html_chunked/wsug_graphics
|
|
|
|
cp wsug_graphics/toolbar/* wsug_html_chunked/wsug_graphics/toolbar
|
2006-05-30 21:34:56 +00:00
|
|
|
cp ws.css wsug_html_chunked
|
2006-06-15 14:18:03 +00:00
|
|
|
$(XSLTPROC) --stringparam base.dir wsug_html_chunked/ --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 --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
|
|
|
|
|
|
|
# create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
|
|
|
|
# you will get lot's of errors, but that's ok
|
2006-09-08 07:44:22 +00:00
|
|
|
user-guide-us.fo: $(WSUG_SOURCE) custom_layer_pdf.xsl
|
2004-08-22 09:16:01 +00:00
|
|
|
ifdef FOP
|
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-22 09:16:01 +00:00
|
|
|
endif
|
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
|
2006-09-08 07:44:22 +00:00
|
|
|
user-guide-a4.fo: $(WSUG_SOURCE) custom_layer_pdf.xsl
|
2004-08-22 09:16:01 +00:00
|
|
|
ifdef FOP
|
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-22 09:16:01 +00:00
|
|
|
endif
|
2004-08-06 21:06:27 +00:00
|
|
|
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2007-02-03 02:01:25 +00:00
|
|
|
wsdg: wsdg_html_chunked developer-guide.html developer-guide-a4.pdf developer-guide-us.pdf
|
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)
|
|
|
|
@ echo --- WSDG - VALIDATING XML ---
|
2005-03-12 11:10:23 +00:00
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
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
|
|
|
|
cp wsdg_graphics/* wsdg_html/wsdg_graphics
|
|
|
|
cp ws.css wsdg_html
|
2006-09-07 20:01:07 +00:00
|
|
|
$(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 --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
|
|
|
|
mkdir -p wsdg_html_chunked/wsdg_graphics
|
|
|
|
cp wsdg_graphics/* wsdg_html_chunked/wsdg_graphics
|
|
|
|
cp 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 --stringparam html.stylesheet ws.css --nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl $<
|
|
|
|
-chmod -R og+rX wsdg_html_chunked
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2004-08-21 16:30:04 +00:00
|
|
|
# create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
|
|
|
|
# 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
|
2004-08-22 09:16:01 +00:00
|
|
|
ifdef FOP
|
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-22 09:16:01 +00:00
|
|
|
endif
|
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
|
2004-08-22 09:16:01 +00:00
|
|
|
ifdef FOP
|
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-22 09:16:01 +00:00
|
|
|
endif
|
2004-08-21 16:30:04 +00:00
|
|
|
|
2005-07-28 14:29:19 +00:00
|
|
|
|
2007-02-03 02:01:25 +00:00
|
|
|
release_notes: release-notes.html release-notes.txt release-notes-a4.pdf release-notes-us.pdf
|
2005-07-28 14:29:19 +00:00
|
|
|
|
|
|
|
# validate the content
|
|
|
|
release_notes.validated: $(RELEASE_NOTES_SOURCE)
|
|
|
|
@ echo --- RELEASE NOTES - VALIDATING XML ---
|
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
# 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 ---
|
2009-05-27 18:20:52 +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
|
|
|
|
|
2005-07-28 14:29:19 +00:00
|
|
|
# create pdf file (through XSL-FO), portrait pages on US letter paper (the default)
|
|
|
|
# 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
|
|
|
ifdef FOP
|
|
|
|
@ echo --- RELEASE NOTES - PDF US PAPER ---
|
|
|
|
$(XSLTPROC) --stringparam paper.type letter --nonet custom_layer_pdf.xsl $< > $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
# 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
|
|
|
ifdef FOP
|
|
|
|
@ echo --- RELEASE NOTES - PDF A4 PAPER ---
|
|
|
|
$(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl $< > $@
|
|
|
|
endif
|
|
|
|
|
2007-07-21 15:24:25 +00:00
|
|
|
wsluarm: make-wsluarm.pl $(WSLUA_MODULES)
|
2007-01-26 18:34:05 +00:00
|
|
|
$(PERL) make-wsluarm.pl $(WSLUA_MODULES)
|
2007-07-21 15:24:25 +00:00
|
|
|
touch wsluarm
|
2007-01-26 18:34:05 +00:00
|
|
|
|
|
|
|
|