!ENDIF
!ENDIF
XSLTPROC = xsltproc.exe
+XMLLINT = xmllint.exe
HTML_XSL = $(DOCBOOK_XSL)/html/chunk.xsl
HTML_PARMS = --param navig.graphics 1 --stringparam navig.graphics.path ../
CHM_XSL = $(DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl
+BOOK = auagd000.xml
+
XMLSRCS = \
- auagd000.xml \
+ $(BOOK) \
auagd005.xml \
auagd006.xml \
auagd007.xml \
index.html: $(XMLSRCS)
@echo Building OpenAFS Administrator Guide in HTML format
- $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) auagd000.xml
+ $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) $(BOOK)
htmlhelp.chm: $(XMLSRCS)
@echo Building OpenAFS Administrator Guide in HTML Help format
- $(XSLTPROC) $(CHM_XSL) auagd000.xml
+ $(XSLTPROC) $(CHM_XSL) $(BOOK)
-hhc.exe htmlhelp.hhp
$(DEL) *.html
$(DEL) *.hh?
$(DEL) *.chw
-install: htmlhelp.chm index.html
+pdf: $(XMLSRCS)
+ @echo Building OpenAFS Administrator Guide in PDF format
+ bash -c "dblatex --pdf --verbose $(BOOK)"
+
+check: $(XMLSRCS)
+ $(XMLLINT) --noout --valid $(BOOK)
+
+install: check htmlhelp.chm index.html
clean::
$(DEL) *.html
!ENDIF
!ENDIF
XSLTPROC = xsltproc.exe
+XMLLINT = xmllint.exe
HTML_XSL = $(DOCBOOK_XSL)/html/chunk.xsl
HTML_PARMS = --param navig.graphics 1 --stringparam navig.graphics.path ../
CHM_XSL = $(DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl
+BOOK = auqbg000.xml
XMLSRCS = \
- auqbg000.xml \
+ $(BOOK) \
auqbg003.xml \
auqbg004.xml \
auqbg005.xml \
index.html: $(XMLSRCS)
@echo Building Unix Quick Start Guide in HTML format
- $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) auqbg000.xml
+ $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) $(BOOK)
htmlhelp.chm: $(XMLSRCS)
@echo Building Unix Quick Start Guide in HTML Help format
- $(XSLTPROC) $(CHM_XSL) auqbg000.xml
+ $(XSLTPROC) $(CHM_XSL) $(BOOK)
-hhc.exe htmlhelp.hhp
$(DEL) *.html
$(DEL) *.hh?
$(DEL) *.chw
-install: htmlhelp.chm index.html
+check: $(XMLSRCS)
+ $(XMLLINT) --noout --valid $(BOOK)
+
+install: check htmlhelp.chm index.html
clean::
$(DEL) *.html
!ENDIF
!ENDIF
XSLTPROC = xsltproc.exe
+XMLLINT = xmllint.exe
HTML_XSL = $(DOCBOOK_XSL)/html/chunk.xsl
HTML_PARMS = --param navig.graphics 1 --stringparam navig.graphics.path ../
CHM_XSL = $(DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl
+BOOK = relnotes.xml
XMLSRCS = \
- relnotes.xml \
+ $(BOOK) \
$(VERSFILE).xml
index.html: $(XMLSRCS)
@echo Building OpenAFS Release Notes in HTML format
- $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) relnotes.xml
+ $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) $(BOOK)
htmlhelp.chm: $(XMLSRCS)
@echo Building OpenAFS Release Notes in HTML Help format
- $(XSLTPROC) $(CHM_XSL) relnotes.xml
+ $(XSLTPROC) $(CHM_XSL) $(BOOK)
-hhc.exe htmlhelp.hhp
$(DEL) *.html
$(DEL) *.hh?
$(DEL) *.chw
-install: htmlhelp.chm index.html
+check: $(XMLSRCS)
+ $(XMLLINT) --noout --valid $(BOOK)
+
+install: check htmlhelp.chm index.html
clean::
$(DEL) *.html
!ENDIF
!ENDIF
XSLTPROC = xsltproc.exe
+XMLLINT = xmllint.exe
HTML_XSL = $(DOCBOOK_XSL)/html/chunk.xsl
HTML_PARMS = --param navig.graphics 1 --stringparam navig.graphics.path ../
CHM_XSL = $(DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl
+BOOK = auusg000.xml
XMLSRCS = \
- auusg000.xml \
+ $(BOOK) \
auusg003.xml \
auusg004.xml \
auusg005.xml \
index.html: $(XMLSRCS)
@echo Building OpenAFS User Guide in HTML format
- $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) auusg000.xml
+ $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) $(BOOK)
htmlhelp.chm: $(XMLSRCS)
@echo Building OpenAFS User Guide in HTML Help format
- $(XSLTPROC) $(CHM_XSL) auusg000.xml
+ $(XSLTPROC) $(CHM_XSL) $(BOOK)
-hhc.exe htmlhelp.hhp
$(DEL) *.html
$(DEL) *.hh?
$(DEL) *.chw
-install: htmlhelp.chm index.html
+check: $(XMLSRCS)
+ $(XMLLINT) --noout --valid $(BOOK)
+
+install: check htmlhelp.chm index.html
clean::
$(DEL) *.html