doc-xml-20090513
[openafs.git] / doc / xml / AdminGuide / NTMakefile
1 # Copyright 2009, Secure Endpoints Inc.
2 # All Rights Reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are met:
6 #
7 # - Redistributions of source code must retain the above copyright notice,
8 #   this list of conditions and the following disclaimer.
9 # - Redistributions in binary form must reproduce the above copyright notice,
10 #   this list of conditions and the following disclaimer in the documentation
11 #   and/or other materials provided with the distribution.
12 # - Neither the name of Secure Endpoints Inc. nor the names of its contributors
13 #   may be used to endorse or promote products derived from this software without
14 #   specific prior written permission from Secure Endpoints Inc..
15 #
16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
19 # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
20 # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 !INCLUDE ..\..\..\src\config\NTMakefile.$(SYS_NAME)
29 !INCLUDE ..\..\..\src\config\NTMakefile.version
30
31 !IFNDEF CYGWIN
32 CYGWIN     = c:/cygwin
33 !ENDIF
34 !IFNDEF DOCBOOK_XSL
35 DOCBOOK_XSL = $(CYGWIN)/usr/share/docbook-xsl
36 !ENDIF
37 XSLTPROC   = xsltproc.exe
38 HTML_XSL = $(DOCBOOK_XSL)/html/chunk.xsl
39 HTML_PARMS = --param navig.graphics 1 --stringparam navig.graphics.path ../
40 CHM_XSL    = $(DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl
41
42 XMLSRCS = \
43         auagd000.xml \
44         auagd005.xml \
45         auagd006.xml \
46         auagd007.xml \
47         auagd008.xml \
48         auagd009.xml \
49         auagd010.xml \
50         auagd011.xml \
51         auagd012.xml \
52         auagd013.xml \
53         auagd014.xml \
54         auagd015.xml \
55         auagd016.xml \
56         auagd017.xml \
57         auagd018.xml \
58         auagd019.xml \
59         auagd020.xml \
60         auagd021.xml \
61         auagd022.xml \
62         auagd023.xml \
63         auagd024.xml \
64         auagd025.xml \
65         auagd026.xml 
66
67 index.html: $(XMLSRCS)
68         @echo Building OpenAFS Administrator Guide in HTML format
69         $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) auagd000.xml 
70
71 htmlhelp.chm: $(XMLSRCS)
72         @echo Building OpenAFS Administrator Guide in HTML Help format
73         $(XSLTPROC) $(CHM_XSL) auagd000.xml
74         -hhc.exe htmlhelp.hhp
75         $(DEL) *.html
76         $(DEL) *.hh?
77         $(DEL) *.chw
78
79 install: htmlhelp.chm index.html
80
81 clean::
82         $(DEL) *.html
83         $(DEL) htmlhelp.chm