Changeset eef46e9
- Timestamp:
- Feb 26, 2011, 10:33:56 PM (14 years ago)
- Children:
- 4fe47e3
- Parents:
- da28cc3
- Location:
- BOOK
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/Makefile
rda28cc3 reef46e9 62 62 $(ARCHS_VD_XML): override arch = $(@:%-validate_dump-xml=%) 63 63 $(ARCHS_VD_XML): 64 @echo "Validating $(arch) book..."64 @echo "Validating $(arch) against the CLFS Schema..." 65 65 $(Q)mkdir -p $(VALIDATEDIR) 66 66 $(Q)xmllint --nonet --noent --xinclude \ 67 --relaxng $(TOP)/schema/ docbook/4.5/rng/docbook.rng \67 --relaxng $(TOP)/schema/clfs/0.1/rng/clfs.rng \ 68 68 -o $(VALIDATEDIR)/$(arch)-full.xml \ 69 $(PWD)/$(arch)-index.xml 69 $(PWD)/$(arch)-index.xml \ 70 2>&1 | grep -v " validates$$"; \ 71 if test $${?} -ne 0; then true; else false; fi 70 72 71 73 ARCHS_P_XML := $(ARCHS:%=%-profiled-xml) … … 74 76 $(ARCHS_P_XML): 75 77 @$(MAKE) --no-print-directory $(arch)-validate_dump-xml 76 @echo " Generating profiled $(arch) book..."78 @echo "Profiling $(arch) for rendering..." 77 79 $(Q)mkdir -p $(PROFILEDIR) 78 80 $(Q)xsltproc --nonet --stringparam profile.condition html \ … … 80 82 $(PWD)/stylesheets/lfs-xsl/profile.xsl \ 81 83 $(VALIDATEDIR)/$(arch)-full.xml 84 85 ARCHS_VDB_XML := $(ARCHS:%=%-validate_db-xml) 86 .PHONY: $(ARCHS_VDB_XML) 87 $(ARCHS_VDB_XML): override arch = $(@:%-validate_db-xml=%) 88 $(ARCHS_VDB_XML): 89 @echo "Validating $(arch) against the DocBook Schema..." 90 $(Q)xmllint --noout --nonet \ 91 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 92 $(VALIDATEDIR)/$(arch)-full.xml \ 93 2>&1 | grep -v " validates$$"; \ 94 if test $${?} -ne 0; then true; else false; fi 82 95 83 96 ARCHS_HTML := $(ARCHS:%=%-html) … … 87 100 $(ARCHS_HTML): 88 101 @$(MAKE) --no-print-directory $(arch)-profiled-xml 102 @$(MAKE) --no-print-directory $(arch)-validate_db-xml 89 103 90 104 @echo "Rendering chunked XHTML of $(arch)..." … … 112 126 $(ARCHS_NOCHUNKS): 113 127 @$(MAKE) --no-print-directory $(arch)-profiled-xml 128 @$(MAKE) --no-print-directory $(arch)-validate_db-xml 114 129 115 130 @echo "Rendering Single File HTML of $(arch)..." … … 128 143 $(ARCHS_FO): 129 144 @$(MAKE) --no-print-directory $(arch)-profiled-xml 145 @$(MAKE) --no-print-directory $(arch)-validate_db-xml 130 146 131 147 @echo "Generating FO file of $(arch)..." … … 153 169 $(ARCHS_VALIDATE): override arch = $(@:%-validate=%) 154 170 $(ARCHS_VALIDATE): 155 @echo "Validating $(arch) ..."171 @echo "Validating $(arch) against the CLFS Schema..." 156 172 $(Q)xmllint --xinclude --noout --nonet \ 157 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 158 $(PWD)/$(arch)-index.xml 173 --relaxng $(TOP)/schema/clfs/0.1/rng/clfs.rng \ 174 $(PWD)/$(arch)-index.xml \ 175 2>&1 | grep -v " validates$$"; \ 176 if test $${?} -ne 0; then true; else false; fi 159 177 160 178 ARCHS_TROUBLE := $(ARCHS:%=%-trouble) … … 166 184 @mkdir -p $(TROUBLEDIR) 167 185 $(Q)xmllint --xinclude --nonet \ 168 --relaxng $(TOP)/schema/ docbook/4.5/rng/docbook.rng \186 --relaxng $(TOP)/schema/clfs/0.1/rng/clfs.rng \ 169 187 -o $(TROUBLEDIR)/dump-$(arch) \ 170 $(PWD)/$(arch)-index.xml 188 $(PWD)/$(arch)-index.xml \ 189 2>&1 | grep -v " validates$$"; \ 190 if test $${?} -ne 0; then true; else false; fi 171 191 $(Q)xmllint --xinclude --noout --nonet \ 172 --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \ 173 $(TROUBLEDIR)/dump-$(arch) 192 --relaxng $(TOP)/schema/clfs/0.1/rng/clfs.rng \ 193 $(TROUBLEDIR)/dump-$(arch) \ 194 2>&1 | grep -v " validates$$"; \ 195 if test $${?} -ne 0; then true; else false; fi 174 196 @echo "You can now look at $(TROUBLEDIR)/dump-$(arch) to see the errors" 175 197
Note:
See TracChangeset
for help on using the changeset viewer.