# Configuration\r
-DOCBOOK_DIST := ../$(pwd)\r
-\r
-DOCBOOK_EXTENSIONS_DIR = $(DOCBOOK_DIST)/extensions\r
-\r
+# The name of the source DocBook xml file\r
INPUT_XML = docsrc/readme.xml\r
+\r
+# The makefile assumes that you have a \r
+# directory named images that contains \r
+# your images. It copies this to the \r
+# output directory\r
USER_IMAGES_PARENT_DIR=docsrc\r
+\r
+# Name of the desired output directory\r
+# This will be created if it doesn't exist\r
OUTPUT_DIR = docs\r
+\r
+# A list of files to exclude from indexing\r
INDEXER_EXCLUDED_FILES = ix01.html\r
\r
+# Profiling params. For more information on \r
+# profiling (conditional text) and DocBook documents, see\r
+# http://www.sagehill.net/docbookxsl/Profiling.html\r
+PROFILE.ARCH = ""\r
+PROFILE.AUDIENCE = ""\r
+PROFILE.CONDITION = ""\r
+PROFILE.CONFORMANCE = ""\r
+PROFILE.LANG = ""\r
+PROFILE.OS = ""\r
+PROFILE.REVISION = ""\r
+PROFILE.REVISIONFLAG = ""\r
+PROFILE.ROLE = ""\r
+PROFILE.SECURITY = ""\r
+PROFILE.STATUS = ""\r
+PROFILE.USERLEVEL = ""\r
+PROFILE.VENDOR = ""\r
+PROFILE.WORDSIZE = ""\r
+PROFILE.ATTRIBUTE = ""\r
+PROFILE.VALUE = ""\r
+\r
+# Use this variable to pass in other stringparams\r
+# to the xsltproc pass that generates DocBook output.\r
+# For example:\r
+# OTHER_XSLTPROC_ARGS = --stringparam example.param ""\r
+OTHER_XSLTPROC_ARGS = \r
+\r
+# Path to the DocBook Distribution that \r
+# contains the xslts etc.\r
+DOCBOOK_DIST := ../$(pwd)\r
+\r
+# =================================================\r
+# You probably don't need to change anything below\r
+# unless you choose to add a validation step.\r
+# ================================================\r
+DOCBOOK_EXTENSIONS_DIR = $(DOCBOOK_DIST)/extensions\r
INDEXER_JAR := $(DOCBOOK_EXTENSIONS_DIR)/webhelpindexer.jar\r
TAGSOUP_JAR := $(DOCBOOK_EXTENSIONS_DIR)/tagsoup-1.2.1.jar\r
LUCENE_ANALYZER_JAR := $(DOCBOOK_EXTENSIONS_DIR)/lucene-analyzers-3.0.0.jar\r
\r
chunk:\r
xsltproc --output xincluded-profiled.xml \\r
- --stringparam profile.os "linux" \\r
+ --stringparam profile.arch ${PROFILE.ARCH} \\r
+ --stringparam profile.audience ${PROFILE.AUDIENCE} \\r
+ --stringparam profile.condition ${PROFILE.CONDITION} \\r
+ --stringparam profile.conformance ${PROFILE.CONFORMANCE} \\r
+ --stringparam profile.lang ${PROFILE.LANG} \\r
+ --stringparam profile.os ${PROFILE.OS} \\r
+ --stringparam profile.revision ${PROFILE.REVISION} \\r
+ --stringparam profile.revisionflag ${PROFILE.REVISIONFLAG} \\r
+ --stringparam profile.role ${PROFILE.ROLE} \\r
+ --stringparam profile.security ${PROFILE.SECURITY} \\r
+ --stringparam profile.status ${PROFILE.STATUS} \\r
+ --stringparam profile.userlevel ${PROFILE.USERLEVEL} \\r
+ --stringparam profile.vendor ${PROFILE.VENDOR} \\r
+ --stringparam profile.wordsize ${PROFILE.WORDSIZE} \\r
+ --stringparam profile.attribute ${PROFILE.ATTRIBUTE} \\r
+ --stringparam profile.value ${PROFILE.VALUE} \\r
../profiling/profile.xsl \\r
${INPUT_XML}\r
\r
- xsltproc --xinclude xsl/webhelp.xsl xincluded-profiled.xml \r
+ xsltproc ${OTHER_XSLTPROC_ARGS} --xinclude xsl/webhelp.xsl xincluded-profiled.xml \r
\r
rm xincluded-profiled.xml\r
index:\r
-classpath $(classpath) \\r
com.nexwave.nquindexer.IndexerMain\r
\r
- cp -r template/content/search/* ${OUTPUT_DIR}/search\r
+ cp -r template/search/* ${OUTPUT_DIR}/search\r
\r
clean:\r
- $(RM) -r docs/*\r
+ $(RM) -r ${OUTPUT_DIR}\r
\r
<copy todir="${output-dir}">
<fileset dir="${ant.file.dir}/template">
<include name="**/*"/>
- <exclude name="**/content/**"/>
+ <exclude name="**/search/**"/>
</fileset>
</copy>
<target name="index" if="do-search-indexing">
<copy todir="${output-dir}/search">
- <fileset dir="${ant.file.dir}/template/content/search">
+ <fileset dir="${ant.file.dir}/template/search">
<include name="**/*"/>
<exclude name="**/*.props"/>
<exclude name="**/stemmers/*"/>
<!-- We separate this out so we only copy the stopwords list and stemmer for the indexer language -->
<copy todir="${output-dir}/search">
- <fileset dir="${ant.file.dir}/template/content/search">
+ <fileset dir="${ant.file.dir}/template/search">
<include name="**/default.props"/>
<include name="**/punctuation.props"/>
<include name="**/${webhelp.indexer.language}*.props"/>
</fileset>
</copy>
- <!--taskdef name="indexertask"
- classname="com.nexwave.nquindexer.IndexerMain">
- <classpath refid="classpath"/>
- </taskdef-->
-
<echo>Indexing html files in ${output-dir}</echo>
<java classname="com.nexwave.nquindexer.IndexerMain" fork="true">
<sysproperty key="htmlExtension" value="${html.extension}"/>
<sysproperty key="doStem" value="${enable.stemming}"/>
<sysproperty key="tocFile" value="${toc.file}"/>
- <sysproperty key="indexerExcludedFiles" value="${indexer-excluded-files}"/>
+ <sysproperty key="indexerExcludedFiles" value="${indexer-excluded-files}"/>
<!--TagSoup SAX Parser for parsing even the bad html contents. see
http://sourceforge.net/tracker/?func=detail&aid=3401185&group_id=21935&atid=373750-->