Changes in / [441840b:2a31285]
- Location:
- BOOK
- Files:
-
- 10 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/Makefile
r441840b r2a31285 3 3 4 4 VALIDATEDIR := $(RENDERDIR)/validate 5 DBXMLDIR := $(RENDERDIR)/docbook6 5 PROFILEDIR := $(RENDERDIR)/profile 7 6 … … 24 23 ppc ppc64 \ 25 24 alpha 26 27 x86_ML := 3228 x86_64_ML := 32,6429 x86_64-64_ML := 6430 sparc_ML := 3231 sparc64_ML := 32,6432 sparc64-64_ML := 6433 mips_ML := 3234 mips64_ML := 32,n32,6435 mips64-64_ML := 6436 ppc_ML := 3237 ppc64_ML := 32,6438 alpha_ML := 6439 25 40 26 ifdef V … … 76 62 $(ARCHS_VD_XML): override arch = $(@:%-validate_dump-xml=%) 77 63 $(ARCHS_VD_XML): 78 @echo "Validating $(arch) against the CLFS Schema..."64 @echo "Validating $(arch) book..." 79 65 $(Q)mkdir -p $(VALIDATEDIR) 80 66 $(Q)xmllint --nonet --noent --xinclude \ 81 --relaxng $(TOP)/schema/ clfs/0.1/rng/clfs.rng \67 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 82 68 -o $(VALIDATEDIR)/$(arch)-full.xml \ 83 $(PWD)/$(arch)-index.xml \ 84 2>&1 | grep -v " validates$$"; \ 85 if test $${?} -ne 0; then true; else false; fi 86 87 ARCHS_DB_XML := $(ARCHS:%=%-db-xml) 88 .PHONY: $(ARCHS_DB_XML) 89 $(ARCHS_DB_XML): override arch = $(@:%-db-xml=%) 90 $(ARCHS_DB_XML): 91 @$(MAKE) --no-print-directory $(arch)-validate_dump-xml 92 @echo "Generating DocBook XML for $(arch)..." 93 $(Q)mkdir -p $(DBXMLDIR) 94 $(Q)xsltproc --nonet \ 95 --stringparam clfs.arch "$(arch)" \ 96 --stringparam clfs.multilib "$($(arch)_ML)" \ 97 --output $(DBXMLDIR)/$(arch)-db.xml \ 98 $(PWD)/stylesheets/clfs-profile.xsl \ 99 $(VALIDATEDIR)/$(arch)-full.xml 69 $(PWD)/$(arch)-index.xml 100 70 101 71 ARCHS_P_XML := $(ARCHS:%=%-profiled-xml) … … 103 73 $(ARCHS_P_XML): override arch = $(@:%-profiled-xml=%) 104 74 $(ARCHS_P_XML): 105 @$(MAKE) --no-print-directory $(arch)- db-xml106 @echo " Profiling $(arch) for rendering..."75 @$(MAKE) --no-print-directory $(arch)-validate_dump-xml 76 @echo "Generating profiled $(arch) book..." 107 77 $(Q)mkdir -p $(PROFILEDIR) 108 $(Q)xsltproc --nonet \ 109 --stringparam profile.condition html \ 78 $(Q)xsltproc --nonet --stringparam profile.condition html \ 110 79 --output $(PROFILEDIR)/$(arch)-html.xml \ 111 80 $(PWD)/stylesheets/lfs-xsl/profile.xsl \ 112 $(DBXMLDIR)/$(arch)-db.xml 113 114 ARCHS_VDB_XML := $(ARCHS:%=%-validate_db-xml) 115 .PHONY: $(ARCHS_VDB_XML) 116 $(ARCHS_VDB_XML): override arch = $(@:%-validate_db-xml=%) 117 $(ARCHS_VDB_XML): 118 @echo "Validating $(arch) against the DocBook Schema..." 119 $(Q)xmllint --noout --nonet \ 120 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 121 $(PROFILEDIR)/$(arch)-html.xml \ 122 2>&1 | grep -v " validates$$"; \ 123 if test $${?} -ne 0; then true; else false; fi 81 $(VALIDATEDIR)/$(arch)-full.xml 124 82 125 83 ARCHS_HTML := $(ARCHS:%=%-html) … … 129 87 $(ARCHS_HTML): 130 88 @$(MAKE) --no-print-directory $(arch)-profiled-xml 131 @$(MAKE) --no-print-directory $(arch)-validate_db-xml132 89 133 90 @echo "Rendering chunked XHTML of $(arch)..." … … 155 112 $(ARCHS_NOCHUNKS): 156 113 @$(MAKE) --no-print-directory $(arch)-profiled-xml 157 @$(MAKE) --no-print-directory $(arch)-validate_db-xml158 114 159 115 @echo "Rendering Single File HTML of $(arch)..." … … 172 128 $(ARCHS_FO): 173 129 @$(MAKE) --no-print-directory $(arch)-profiled-xml 174 @$(MAKE) --no-print-directory $(arch)-validate_db-xml175 130 176 131 @echo "Generating FO file of $(arch)..." … … 198 153 $(ARCHS_VALIDATE): override arch = $(@:%-validate=%) 199 154 $(ARCHS_VALIDATE): 200 @echo "Validating $(arch) against the CLFS Schema..."155 @echo "Validating $(arch)..." 201 156 $(Q)xmllint --xinclude --noout --nonet \ 202 --relaxng $(TOP)/schema/clfs/0.1/rng/clfs.rng \ 203 $(PWD)/$(arch)-index.xml \ 204 2>&1 | grep -v " validates$$"; \ 205 if test $${?} -ne 0; then true; else false; fi 157 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 158 $(PWD)/$(arch)-index.xml 206 159 207 160 ARCHS_TROUBLE := $(ARCHS:%=%-trouble) … … 213 166 @mkdir -p $(TROUBLEDIR) 214 167 $(Q)xmllint --xinclude --nonet \ 215 --relaxng $(TOP)/schema/ clfs/0.1/rng/clfs.rng \168 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 216 169 -o $(TROUBLEDIR)/dump-$(arch) \ 217 $(PWD)/$(arch)-index.xml \ 218 2>&1 | grep -v " validates$$"; \ 219 if test $${?} -ne 0; then true; else false; fi 170 $(PWD)/$(arch)-index.xml 220 171 $(Q)xmllint --xinclude --noout --nonet \ 221 --relaxng $(TOP)/schema/clfs/0.1/rng/clfs.rng \ 222 $(TROUBLEDIR)/dump-$(arch) \ 223 2>&1 | grep -v " validates$$"; \ 224 if test $${?} -ne 0; then true; else false; fi 172 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 173 $(TROUBLEDIR)/dump-$(arch) 225 174 @echo "You can now look at $(TROUBLEDIR)/dump-$(arch) to see the errors" 226 175 -
BOOK/x86-index.xml
r441840b r2a31285 9 9 10 10 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="prologue/x86/bookinfo.xml"/> 11 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="testpart.xml"/>12 11 <!-- 13 12 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="prologue/dedication.xml"/> 14 13 --> 15 14 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="prologue/preface.xml"/> 16 17 15 18 16 <part id="part1"> -
BOOK/x86_64-index.xml
r441840b r2a31285 6 6 ]> 7 7 8 <book xmlns:c="http://schema.cross-lfs.org/book">8 <book> 9 9 10 10 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="prologue/x86_64/bookinfo.xml"/> 11 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="testpart.xml"/>12 11 <!-- 13 12 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="prologue/dedication.xml"/>
Note:
See TracChangeset
for help on using the changeset viewer.