source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/webhelp/Makefile.sample@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.1 KB
Line 
1# Configuration
2# The name of the source DocBook xml file
3INPUT_XML = docsrc/readme.xml
4
5# The makefile assumes that you have a
6# directory named images that contains
7# your images. It copies this to the
8# output directory
9USER_IMAGES_PARENT_DIR=docsrc
10
11# Name of the desired output directory
12# This will be created if it doesn't exist
13OUTPUT_DIR = docs
14
15# A list of files to exclude from indexing
16INDEXER_EXCLUDED_FILES = ix01.html
17
18# Profiling params. For more information on
19# profiling (conditional text) and DocBook documents, see
20# http://www.sagehill.net/docbookxsl/Profiling.html
21PROFILE.ARCH = ""
22PROFILE.AUDIENCE = ""
23PROFILE.CONDITION = ""
24PROFILE.CONFORMANCE = ""
25PROFILE.LANG = ""
26PROFILE.OS = ""
27PROFILE.REVISION = ""
28PROFILE.REVISIONFLAG = ""
29PROFILE.ROLE = ""
30PROFILE.SECURITY = ""
31PROFILE.STATUS = ""
32PROFILE.USERLEVEL = ""
33PROFILE.VENDOR = ""
34PROFILE.WORDSIZE = ""
35PROFILE.ATTRIBUTE = ""
36PROFILE.VALUE = ""
37
38# Use this variable to pass in other stringparams
39# to the xsltproc pass that generates DocBook output.
40# For example:
41# OTHER_XSLTPROC_ARGS = --stringparam example.param ""
42OTHER_XSLTPROC_ARGS =
43
44# Path to the DocBook Distribution that
45# contains the xslts etc.
46DOCBOOK_DIST := ../$(pwd)
47
48# =================================================
49# You probably don't need to change anything below
50# unless you choose to add a validation step.
51# ================================================
52DOCBOOK_EXTENSIONS_DIR = $(DOCBOOK_DIST)/extensions
53INDEXER_JAR := $(DOCBOOK_EXTENSIONS_DIR)/webhelpindexer.jar
54TAGSOUP_JAR := $(DOCBOOK_EXTENSIONS_DIR)/tagsoup-1.2.1.jar
55LUCENE_ANALYZER_JAR := $(DOCBOOK_EXTENSIONS_DIR)/lucene-analyzers-3.0.0.jar
56LUCENE_CORE_JAR := $(DOCBOOK_EXTENSIONS_DIR)/lucene-core-3.0.0.jar
57
58classpath := $(INDEXER_JAR):$(TAGSOUP_JAR):$(LUCENE_ANALYZER_JAR):$(LUCENE_CORE_JAR)
59
60all: webhelp
61
62webhelp: $(INPUT_XML) copyfiles chunk index
63
64copyfiles:
65 -rm -rf $(OUTPUT_DIR)
66 mkdir -p $(OUTPUT_DIR)
67 cp -r template/common ${OUTPUT_DIR}
68 test ! -d $(USER_IMAGES_PARENT_DIR)/images/ || cp -r $(USER_IMAGES_PARENT_DIR)/images ${OUTPUT_DIR}/images
69 cp template/favicon.ico ${OUTPUT_DIR}/
70
71chunk:
72 xsltproc --xinclude --output xincluded-profiled.xml \
73 --stringparam profile.arch ${PROFILE.ARCH} \
74 --stringparam profile.audience ${PROFILE.AUDIENCE} \
75 --stringparam profile.condition ${PROFILE.CONDITION} \
76 --stringparam profile.conformance ${PROFILE.CONFORMANCE} \
77 --stringparam profile.lang ${PROFILE.LANG} \
78 --stringparam profile.os ${PROFILE.OS} \
79 --stringparam profile.revision ${PROFILE.REVISION} \
80 --stringparam profile.revisionflag ${PROFILE.REVISIONFLAG} \
81 --stringparam profile.role ${PROFILE.ROLE} \
82 --stringparam profile.security ${PROFILE.SECURITY} \
83 --stringparam profile.status ${PROFILE.STATUS} \
84 --stringparam profile.userlevel ${PROFILE.USERLEVEL} \
85 --stringparam profile.vendor ${PROFILE.VENDOR} \
86 --stringparam profile.wordsize ${PROFILE.WORDSIZE} \
87 --stringparam profile.attribute ${PROFILE.ATTRIBUTE} \
88 --stringparam profile.value ${PROFILE.VALUE} \
89 ../profiling/profile.xsl \
90 ${INPUT_XML}
91
92 xsltproc ${OTHER_XSLTPROC_ARGS} xsl/webhelp.xsl xincluded-profiled.xml
93
94 rm xincluded-profiled.xml
95index:
96 java \
97 -DhtmlDir=$(OUTPUT_DIR) \
98 -DindexerLanguage=en \
99 -DhtmlExtension=html \
100 -DdoStem=true \
101 -DindexerExcludedFiles=$(INDEXER_EXCLUDED_FILES) \
102 -Dorg.xml.sax.driver=org.ccil.cowan.tagsoup.Parser \
103 -Djavax.xml.parsers.SAXParserFactory=org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl \
104 -classpath $(classpath) \
105 com.nexwave.nquindexer.IndexerMain
106
107 cp -r template/search/* ${OUTPUT_DIR}/search
108
109clean:
110 $(RM) -r ${OUTPUT_DIR}
111
Note: See TracBrowser for help on using the repository browser.