doc: fix kindle builds of documentation
[openafs.git] / doc / xml / QuickStartUnix / NTMakefile
index 953b2de..d89fb63 100644 (file)
@@ -29,25 +29,27 @@ VERSFILE = version
 !INCLUDE ..\..\..\src\config\NTMakefile.$(SYS_NAME)
 !INCLUDE ..\..\..\src\config\NTMakefile.version
 
-!IFNDEF CYGWIN
-CYGWIN     = c:/cygwin
+!IFNDEF CYGWINDIR
+CYGWINDIR     = c:/cygwin
 !ENDIF
 !IFNDEF DOCBOOK_XSL
-!IF (EXIST($(CYGWIN)/usr/share/sgml/docbook/xsl-stylesheets))
-DOCBOOK_XSL = $(CYGWIN)/usr/share/sgml/docbook/xsl-stylesheets
-!ELSE IF (EXIST($(CYGWIN)/usr/share/docbook-xsl))
-DOCBOOK_XSL = $(CYGWIN)/usr/share/docbook-xsl
+!IF (EXIST($(CYGWINDIR)/usr/share/sgml/docbook/xsl-stylesheets))
+DOCBOOK_XSL = $(CYGWINDIR)/usr/share/sgml/docbook/xsl-stylesheets
+!ELSE IF (EXIST($(CYGWINDIR)/usr/share/docbook-xsl))
+DOCBOOK_XSL = $(CYGWINDIR)/usr/share/docbook-xsl
 !ELSE
 !ERROR DOCBOOK_XSL cannot be determined
 !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 \
@@ -55,21 +57,25 @@ XMLSRCS = \
         auqbg007.xml \
         auqbg008.xml \
         appendix.xml \
+        appendix_dafs.xml \
         $(VERSFILE).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