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
|
|
|
|
# Leave these commented out if you don't have fop instlled or you
|
|
|
|
# don't want PDF documentation.
|
|
|
|
#
|
2005-03-04 13:24:47 +00:00
|
|
|
# for win32 (cygwin) environments (as of fop-0.20 the cygwin script does
|
|
|
|
# not use $FOP_OPTS)
|
2007-01-27 01:11:39 +00:00
|
|
|
FOP?=fop-0.20.5/fop.bat
|
2006-06-02 13:15:40 +00:00
|
|
|
#
|
2004-08-22 09:16:01 +00:00
|
|
|
# for unix like environments (if you have problems with fop, try to use an absolute path here)
|
2006-06-02 13:15:40 +00:00
|
|
|
#FOP=fop-0.20.5/fop.sh
|
|
|
|
#
|
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)
|
2006-06-15 14:18:03 +00:00
|
|
|
#FOP=fop
|
2004-08-22 09:10:12 +00:00
|
|
|
|
2004-08-22 09:16:01 +00:00
|
|
|
# html help compiler (Win32 only)
|
2006-06-02 13:15:40 +00:00
|
|
|
# Leave these commented out if you don't have HHC installed or you
|
|
|
|
# don't want CHM documentation.
|
2006-10-29 19:47:59 +00:00
|
|
|
HHC?="/cygdrive/c/Program Files/HTML Help Workshop/hhc.exe"
|
2005-08-02 06:39:04 +00:00
|
|
|
#HHC="true"
|
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
|
|
|
# (cygwin: lynx works, elinks not available, links and true doesn't produce output)
|
|
|
|
#HTML2TXT=elinks -dump -dump-width 72
|
2006-09-12 09:35:29 +00:00
|
|
|
#HTML2TXT=links -dump -width 72
|
2006-10-27 19:15:57 +00:00
|
|
|
HTML2TXT?=lynx -dump -width=72 -nolist -stdin
|
2006-09-16 12:13:32 +00:00
|
|
|
#HTML2TXT="true"
|
2005-12-27 22:22:14 +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
|
|
|
|
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
|
|
|
|
2006-05-30 19:45:12 +00:00
|
|
|
WSUG_FILES = \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_src/WSUG_app_files.xml \
|
|
|
|
wsug_src/WSUG_app_howitworks.xml \
|
|
|
|
wsug_src/WSUG_app_messages.xml \
|
|
|
|
wsug_src/WSUG_app_protocols.xml \
|
|
|
|
wsug_src/WSUG_app_tools.xml \
|
|
|
|
wsug_src/WSUG_chapter_advanced.xml \
|
|
|
|
wsug_src/WSUG_chapter_build_install.xml \
|
|
|
|
wsug_src/WSUG_chapter_capture.xml \
|
|
|
|
wsug_src/WSUG_chapter_customize.xml \
|
|
|
|
wsug_src/WSUG_chapter_introduction.xml \
|
|
|
|
wsug_src/WSUG_chapter_io.xml \
|
|
|
|
wsug_src/WSUG_chapter_statistics.xml \
|
|
|
|
wsug_src/WSUG_chapter_troubleshoot.xml \
|
|
|
|
wsug_src/WSUG_chapter_use.xml \
|
|
|
|
wsug_src/WSUG_chapter_work.xml \
|
|
|
|
wsug_src/WSUG_meta_info.xml \
|
|
|
|
wsug_src/WSUG_preface.xml \
|
2006-09-07 20:01:07 +00:00
|
|
|
ws.css
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2006-05-30 19:45:12 +00:00
|
|
|
WSUG_GRAPHICS = \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-analyze-menu.png \
|
|
|
|
wsug_graphics/ws-bytes-pane-popup-menu.png \
|
|
|
|
wsug_graphics/ws-bytes-pane-tabs.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/ws-bytes-pane.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-capture-info.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/ws-capture-interfaces.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-capture-menu.png \
|
|
|
|
wsug_graphics/ws-capture-options.png \
|
|
|
|
wsug_graphics/ws-capture-preferences.png \
|
|
|
|
wsug_graphics/ws-choose-color-rule.png \
|
|
|
|
wsug_graphics/ws-coloring-fields.png \
|
|
|
|
wsug_graphics/ws-coloring-rules-dialog.png \
|
|
|
|
wsug_graphics/ws-decode-as-show.png \
|
|
|
|
wsug_graphics/ws-decode-as.png \
|
|
|
|
wsug_graphics/ws-details-pane-popup-menu.png \
|
|
|
|
wsug_graphics/ws-details-pane.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/ws-display-filter-tcp.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-edit-color-rule-dialog.png \
|
|
|
|
wsug_graphics/ws-edit-menu.png \
|
|
|
|
wsug_graphics/ws-enabled-protocols.png \
|
|
|
|
wsug_graphics/ws-export-pdml.png \
|
|
|
|
wsug_graphics/ws-export-plain.png \
|
|
|
|
wsug_graphics/ws-export-ps.png \
|
|
|
|
wsug_graphics/ws-export-psml.png \
|
|
|
|
wsug_graphics/ws-export-selected.png \
|
|
|
|
wsug_graphics/ws-file-menu.png \
|
|
|
|
wsug_graphics/ws-file-set-dialog.png \
|
|
|
|
wsug_graphics/ws-filter-add-expression.png \
|
|
|
|
wsug_graphics/ws-filter-toolbar.png \
|
|
|
|
wsug_graphics/ws-filters.png \
|
|
|
|
wsug_graphics/ws-find-packet.png \
|
|
|
|
wsug_graphics/ws-follow-stream.png \
|
|
|
|
wsug_graphics/ws-go-menu.png \
|
|
|
|
wsug_graphics/ws-goto-packet.png \
|
|
|
|
wsug_graphics/ws-gui-colors-preferences.png \
|
|
|
|
wsug_graphics/ws-gui-columns-preferences.png \
|
|
|
|
wsug_graphics/ws-gui-font-preferences.png \
|
|
|
|
wsug_graphics/ws-gui-layout-preferences.png \
|
|
|
|
wsug_graphics/ws-gui-preferences.png \
|
|
|
|
wsug_graphics/ws-help-menu.png \
|
|
|
|
wsug_graphics/ws-list-pane.png \
|
|
|
|
wsug_graphics/ws-main-toolbar.png \
|
|
|
|
wsug_graphics/ws-menu.png \
|
2006-09-15 22:56:15 +00:00
|
|
|
wsug_graphics/ws-merge-gtk1.png \
|
|
|
|
wsug_graphics/ws-merge-gtk2.png \
|
|
|
|
wsug_graphics/ws-merge-win32.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-nameresolution-preferences.png \
|
2006-09-15 22:56:15 +00:00
|
|
|
wsug_graphics/ws-open-gtk1.png \
|
|
|
|
wsug_graphics/ws-open-gtk2.png \
|
|
|
|
wsug_graphics/ws-open-win32.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-packet-format.png \
|
|
|
|
wsug_graphics/ws-packet-pane-popup-menu.png \
|
|
|
|
wsug_graphics/ws-packet-range.png \
|
|
|
|
wsug_graphics/ws-packet-selected.png \
|
|
|
|
wsug_graphics/ws-packet-sep-win.png \
|
|
|
|
wsug_graphics/ws-print.png \
|
|
|
|
wsug_graphics/ws-printing-preferences.png \
|
2006-09-15 22:56:15 +00:00
|
|
|
wsug_graphics/ws-save-as-gtk1.png \
|
|
|
|
wsug_graphics/ws-save-as-gtk2.png \
|
|
|
|
wsug_graphics/ws-save-as-win32.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-statistics-menu.png \
|
|
|
|
wsug_graphics/ws-stats-conversations.png \
|
|
|
|
wsug_graphics/ws-stats-endpoints.png \
|
|
|
|
wsug_graphics/ws-stats-hierarchy.png \
|
|
|
|
wsug_graphics/ws-stats-iographs.png \
|
|
|
|
wsug_graphics/ws-stats-srt-dcerpc-filter.png \
|
|
|
|
wsug_graphics/ws-stats-srt-dcerpc.png \
|
|
|
|
wsug_graphics/ws-stats-summary.png \
|
|
|
|
wsug_graphics/ws-statusbar-empty.png \
|
|
|
|
wsug_graphics/ws-statusbar-loaded.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/ws-statusbar-selected.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-time-reference.png \
|
|
|
|
wsug_graphics/ws-view-menu.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/note.png \
|
|
|
|
wsug_graphics/tip.png \
|
|
|
|
wsug_graphics/warning.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/autoscroll_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/capture_filter_24.png \
|
|
|
|
wsug_graphics/toolbar/capture_interfaces_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/capture_options_24.png \
|
|
|
|
wsug_graphics/toolbar/capture_restart_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/capture_start_24.png \
|
|
|
|
wsug_graphics/toolbar/capture_stop_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/colorize_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/display_filter_24.png \
|
|
|
|
wsug_graphics/toolbar/resize_columns_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/stock_add_24.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/toolbar/stock_apply_20.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_bottom_24.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/toolbar/stock_clear_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_close_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_colorselector_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/stock_help_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_jump_to_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/stock_left_arrow_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_open_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_preferences_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_print_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/stock_properties_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_refresh_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/stock_right_arrow_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_save_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_save_as_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_search_24.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsug_graphics/toolbar/stock_stop_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_top_24.png \
|
2006-06-15 14:18:03 +00:00
|
|
|
wsug_graphics/toolbar/stock_zoom_1_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_zoom_in_24.png \
|
|
|
|
wsug_graphics/toolbar/stock_zoom_out_24.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsug_graphics/ws-logo.png \
|
|
|
|
wsug_graphics/ws-main.png
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2006-06-06 23:08:58 +00:00
|
|
|
WSDG_FILES = \
|
2006-06-06 23:23:26 +00:00
|
|
|
wsdg_src/WSDG_chapter_build_intro.xml \
|
|
|
|
wsdg_src/WSDG_chapter_capture.xml \
|
|
|
|
wsdg_src/WSDG_chapter_dissection.xml \
|
|
|
|
wsdg_src/WSDG_chapter_env_intro.xml \
|
|
|
|
wsdg_src/WSDG_chapter_libraries.xml \
|
2007-01-21 04:48:49 +00:00
|
|
|
wsdg_src/WSDG_chapter_quick_setup.xml \
|
2006-06-06 23:23:26 +00:00
|
|
|
wsdg_src/WSDG_chapter_sources.xml \
|
|
|
|
wsdg_src/WSDG_chapter_tools.xml \
|
|
|
|
wsdg_src/WSDG_chapter_userinterface.xml \
|
|
|
|
wsdg_src/WSDG_chapter_works.xml \
|
|
|
|
wsdg_src/WSDG_meta_info.xml \
|
2006-09-07 20:01:07 +00:00
|
|
|
wsdg_src/WSDG_preface.xml \
|
|
|
|
ws.css
|
2006-06-06 23:08:58 +00:00
|
|
|
|
|
|
|
WSDG_GRAPHICS = \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsdg_graphics/ws-capture-sync.dia \
|
|
|
|
wsdg_graphics/ws-capture-sync.png \
|
2006-08-25 20:02:57 +00:00
|
|
|
wsdg_graphics/ws-capture_internals.dia \
|
|
|
|
wsdg_graphics/ws-capture_internals.png \
|
|
|
|
wsdg_graphics/ws-function-blocks.dia \
|
|
|
|
wsdg_graphics/ws-function-blocks.png \
|
|
|
|
wsdg_graphics/ws-logo.png \
|
2006-09-12 09:35:29 +00:00
|
|
|
wsdg_graphics/note.png \
|
|
|
|
wsdg_graphics/tip.png \
|
2006-06-06 23:08:58 +00:00
|
|
|
wsdg_graphics/warning.png
|
2005-03-12 11:10:23 +00:00
|
|
|
|
|
|
|
# user-guide.xml must be first in the list (to match $<)
|
2006-05-30 19:45:12 +00:00
|
|
|
WSUG_SOURCE = \
|
2005-03-12 11:10:23 +00:00
|
|
|
user-guide.xml \
|
|
|
|
svn_version.xml \
|
2006-09-07 20:01:07 +00:00
|
|
|
Makefile \
|
2006-05-30 19:45:12 +00:00
|
|
|
$(WSUG_FILES) \
|
|
|
|
$(WSUG_GRAPHICS)
|
2005-03-12 11:10:23 +00:00
|
|
|
|
|
|
|
# developer-guide.xml must be first in the list (to match $<)
|
2006-06-06 23:08:58 +00:00
|
|
|
WSDG_SOURCE = \
|
2005-03-12 11:10:23 +00:00
|
|
|
developer-guide.xml \
|
|
|
|
svn_version.xml \
|
2006-09-07 20:01:07 +00:00
|
|
|
Makefile \
|
2006-06-06 23:08:58 +00:00
|
|
|
$(WSDG_FILES) \
|
|
|
|
$(WSDG_GRAPHICS)
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2005-07-28 14:29:19 +00:00
|
|
|
RELEASE_NOTES_SOURCE = \
|
|
|
|
release-notes.xml \
|
2006-09-07 20:01:07 +00:00
|
|
|
svn_version.xml \
|
|
|
|
Makefile
|
2005-07-28 14:29:19 +00:00
|
|
|
|
2005-03-12 11:10:23 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
*.chm \
|
|
|
|
*.fo \
|
|
|
|
*.hhc \
|
|
|
|
*.hhp \
|
|
|
|
*.pdf \
|
|
|
|
*.validated \
|
2006-06-06 23:08:58 +00:00
|
|
|
wsdg_chm \
|
|
|
|
wsdg_html \
|
2006-06-21 18:29:38 +00:00
|
|
|
wsdg_html.zip \
|
2006-06-06 23:08:58 +00:00
|
|
|
wsdg_html_chunked \
|
2006-06-21 18:29:38 +00:00
|
|
|
wsdg_html_chunked.zip \
|
2006-05-30 21:34:56 +00:00
|
|
|
wsug_chm \
|
|
|
|
wsug_html \
|
2006-06-21 18:29:38 +00:00
|
|
|
wsug_html.zip \
|
2006-05-30 21:34:56 +00:00
|
|
|
wsug_html_chunked \
|
2006-06-21 18:29:38 +00:00
|
|
|
wsug_html_chunked.zip \
|
2005-03-12 11:10:23 +00:00
|
|
|
htmlhelp.* \
|
2005-10-09 07:21:01 +00:00
|
|
|
release_notes_chm \
|
|
|
|
release-notes.html \
|
2005-12-27 22:22:14 +00:00
|
|
|
release-notes.txt \
|
2005-03-12 11:10:23 +00:00
|
|
|
svn_version.xml \
|
2007-01-19 00:14:43 +00:00
|
|
|
user-guide.zip \
|
2007-01-26 18:34:05 +00:00
|
|
|
wsluarm.xml \
|
|
|
|
wsluarm_src/*.xml
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2007-01-27 02:32:02 +00:00
|
|
|
all: svn_version_check wsug.validated wsdg.validated wsluarm.validated release_notes.validated wsug wsdg release_notes wsluarm
|
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-01-18 23:57:03 +00:00
|
|
|
dos2unix ./check_svn_version.sh
|
2006-09-08 02:25:55 +00:00
|
|
|
@ ./check_svn_version.sh
|
2006-09-07 20:01:07 +00:00
|
|
|
|
|
|
|
svn_version.xml: svn_version_check
|
2005-03-12 11:10:23 +00:00
|
|
|
|
|
|
|
|
2007-01-19 00:12:01 +00:00
|
|
|
wsug: wsug_html_chunked user-guide.html user-guide-a4.pdf user-guide-us.pdf user-guide.chm user-guide.zip
|
2005-03-12 11:10:23 +00:00
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
# validate the content
|
2006-05-30 21:34:56 +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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
# create MS html help file (through html chunked pages)
|
2006-05-30 19:45:12 +00:00
|
|
|
user-guide.chm: $(WSUG_SOURCE)
|
2004-08-22 09:16:01 +00:00
|
|
|
ifdef HHC
|
2006-05-30 19:45:12 +00:00
|
|
|
@ echo --- WSUG - MICROSOFT HTML HELP ---
|
2006-06-15 14:18:03 +00:00
|
|
|
mkdir -p wsug_chm/wsug_graphics/toolbar
|
|
|
|
-cp wsug_graphics/*.* wsug_chm/wsug_graphics/
|
|
|
|
-cp wsug_graphics/toolbar/* wsug_chm/wsug_graphics/toolbar/
|
|
|
|
$(XSLTPROC) --stringparam base.dir wsug_chm/ --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/htmlhelp/htmlhelp.xsl $<
|
2004-08-22 09:16:01 +00:00
|
|
|
-$(HHC) htmlhelp.hhp
|
2005-03-12 11:10:23 +00:00
|
|
|
-mv htmlhelp.chm $@
|
2005-02-20 21:45:52 +00:00
|
|
|
-rm -r htmlhelp.hhp
|
|
|
|
-rm -r toc.hhc
|
2007-01-23 21:19:46 +00:00
|
|
|
endif
|
2007-01-19 00:12:01 +00:00
|
|
|
|
|
|
|
user-guide.zip: user-guide.chm
|
2007-01-23 21:19:46 +00:00
|
|
|
ifdef HHC
|
2007-01-19 00:12:01 +00:00
|
|
|
rm -f user-guide.zip
|
|
|
|
zip user-guide.zip user-guide.chm
|
2004-08-22 09:16:01 +00:00
|
|
|
endif
|
|
|
|
|
2004-08-17 17:09:14 +00:00
|
|
|
|
2006-06-06 23:08:58 +00:00
|
|
|
wsdg: wsdg_html_chunked developer-guide.html developer-guide-a4.pdf developer-guide-us.pdf developer-guide.chm
|
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
|
|
|
|
|
|
|
# create MS html help file (through html chunked pages)
|
2006-06-06 23:08:58 +00:00
|
|
|
developer-guide.chm: $(WSDG_SOURCE)
|
2004-08-22 09:16:01 +00:00
|
|
|
ifdef HHC
|
2006-06-06 23:08:58 +00:00
|
|
|
@ echo --- WSDG - MICROSOFT HTML HELP ---
|
|
|
|
mkdir -p wsdg_chm/wsdg_graphics
|
|
|
|
cp wsdg_graphics/* wsdg_chm/wsdg_graphics
|
|
|
|
$(XSLTPROC) --stringparam base.dir wsdg_chm/ --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/htmlhelp/htmlhelp.xsl $<
|
2004-08-22 09:16:01 +00:00
|
|
|
-$(HHC) htmlhelp.hhp
|
2005-03-12 11:10:23 +00:00
|
|
|
-mv htmlhelp.chm $@
|
2005-02-20 21:45:52 +00:00
|
|
|
-rm -r htmlhelp.hhp
|
|
|
|
-rm -r toc.hhc
|
2004-08-22 09:16:01 +00:00
|
|
|
endif
|
|
|
|
|
2005-07-28 14:29:19 +00:00
|
|
|
|
2005-12-27 22:22:14 +00:00
|
|
|
release_notes: release-notes.html release-notes.txt release-notes-a4.pdf release-notes-us.pdf release-notes.chm
|
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 ---
|
|
|
|
$(XSLTPROC) --nonet http://docbook.sourceforge.net/release/xsl/current/html/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 ---
|
2006-09-12 09:35:29 +00:00
|
|
|
$(XSLTPROC) --stringparam generate.toc "article nop" --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< | $(HTML2TXT) > $@
|
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
|
|
|
|
|
|
|
|
# create MS html help file (through html chunked pages)
|
|
|
|
release-notes.chm: $(RELEASE_NOTES_SOURCE)
|
|
|
|
ifdef HHC
|
|
|
|
@ echo --- RELEASE NOTES - MICROSOFT HTML HELP ---
|
2006-06-15 14:18:03 +00:00
|
|
|
$(XSLTPROC) --stringparam base.dir release_notes_chm/ --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 --nonet http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl $<
|
2005-07-28 14:29:19 +00:00
|
|
|
-$(HHC) htmlhelp.hhp
|
|
|
|
-mv htmlhelp.chm $@
|
|
|
|
-rm -r htmlhelp.hhp
|
|
|
|
-rm -r toc.hhc
|
|
|
|
endif
|
|
|
|
|
2007-01-26 18:34:05 +00:00
|
|
|
PERL = perl
|
|
|
|
|
|
|
|
WSLUA_MODULES = \
|
|
|
|
../epan/wslua/wslua_dumper.c \
|
|
|
|
../epan/wslua/wslua_field.c \
|
|
|
|
../epan/wslua/wslua_gui.c \
|
|
|
|
../epan/wslua/wslua_listener.c \
|
|
|
|
../epan/wslua/wslua_pinfo.c \
|
|
|
|
../epan/wslua/wslua_proto.c \
|
|
|
|
../epan/wslua/wslua_tree.c \
|
|
|
|
../epan/wslua/wslua_tvb.c \
|
|
|
|
../epan/wslua/wslua_util.c
|
|
|
|
|
|
|
|
WSLUA_FILES = \
|
|
|
|
wslua_dumper.xml \
|
|
|
|
wslua_field.xml \
|
|
|
|
wslua_gui.xml \
|
|
|
|
wslua_listener.xml \
|
|
|
|
wslua_pinfo.xml \
|
|
|
|
wslua_proto.xml \
|
|
|
|
wslua_tree.xml \
|
|
|
|
wslua_tvb.xml \
|
|
|
|
wslua_util.xml
|
|
|
|
|
|
|
|
WSLUARM_SOURCE = \
|
|
|
|
wsluarm.xml \
|
|
|
|
svn_version.xml \
|
|
|
|
Makefile \
|
|
|
|
$(WSLUA_FILES)
|
2007-01-27 02:32:02 +00:00
|
|
|
|
|
|
|
$(WSLUA_FILES): wsluarm.xml
|
2007-01-26 18:34:05 +00:00
|
|
|
|
|
|
|
wsluarm.xml: make-wsluarm.pl template-wsluarm.xml $(WSLUA_MODULES)
|
|
|
|
$(PERL) make-wsluarm.pl $(WSLUA_MODULES)
|
|
|
|
|
2007-01-28 18:37:23 +00:00
|
|
|
wsluarm: wsluarm.html wsluarm.txt wsluarm-a4.pdf wsluarm-us.pdf wsluarm.chm
|
2007-01-26 18:34:05 +00:00
|
|
|
|
|
|
|
# validate the content
|
|
|
|
wsluarm.validated: $(WSLUARM_SOURCE)
|
|
|
|
@ echo --- WSLUARM - VALIDATING XML ---
|
|
|
|
$(XMLLINT) --valid --noout $<
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
# create html single page file
|
|
|
|
wsluarm.html: $(WSLUARM_SOURCE)
|
|
|
|
@ echo --- WSLUARM - HTML ---
|
|
|
|
$(XSLTPROC) --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< > $@
|
|
|
|
|
|
|
|
# create txt single page file (through HTML)
|
|
|
|
wsluarm.txt: $(WSLUARM_SOURCE)
|
|
|
|
@ echo --- WSLUARM - TXT ---
|
|
|
|
$(XSLTPROC) --stringparam generate.toc "article nop" --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $< | $(HTML2TXT) > $@
|
|
|
|
|
|
|
|
# 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
|
|
|
|
wsluarm-us.fo: $(WSLUARM_SOURCE) custom_layer_pdf.xsl
|
|
|
|
ifdef FOP
|
|
|
|
@ echo --- WSLUARM - 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
|
|
|
|
wsluarm-a4.fo: $(WSLUARM_SOURCE) custom_layer_pdf.xsl
|
|
|
|
ifdef FOP
|
|
|
|
@ echo --- WSLUARM - PDF A4 PAPER ---
|
|
|
|
$(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl $< > $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
# create MS html help file (through html chunked pages)
|
|
|
|
wsluarm.chm: $(WSLUARM_SOURCE)
|
|
|
|
ifdef HHC
|
|
|
|
@ echo --- WSLUARM - MICROSOFT HTML HELP ---
|
2007-01-27 01:36:00 +00:00
|
|
|
$(XSLTPROC) --stringparam base.dir wsluarm_chm/ --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 --nonet http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl $<
|
2007-01-26 18:34:05 +00:00
|
|
|
-$(HHC) htmlhelp.hhp
|
|
|
|
-mv htmlhelp.chm $@
|
|
|
|
-rm -r htmlhelp.hhp
|
|
|
|
-rm -r toc.hhc
|
|
|
|
endif
|
|
|
|
|
|
|
|
|