Commit | Line | Data |
---|---|---|
805e021f CE |
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 | VERSFILE = version | |
29 | !INCLUDE ..\..\..\src\config\NTMakefile.$(SYS_NAME) | |
30 | !INCLUDE ..\..\..\src\config\NTMakefile.version | |
31 | ||
32 | !IFNDEF CYGWINDIR | |
33 | CYGWINDIR = c:/cygwin | |
34 | !ENDIF | |
35 | !IFNDEF DOCBOOK_XSL | |
36 | !IF (EXIST($(CYGWINDIR)/usr/share/sgml/docbook/xsl-stylesheets)) | |
37 | DOCBOOK_XSL = $(CYGWINDIR)/usr/share/sgml/docbook/xsl-stylesheets | |
38 | !ELSE IF (EXIST($(CYGWINDIR)/usr/share/docbook-xsl)) | |
39 | DOCBOOK_XSL = $(CYGWINDIR)/usr/share/docbook-xsl | |
40 | !ELSE | |
41 | !ERROR DOCBOOK_XSL cannot be determined | |
42 | !ENDIF | |
43 | !ENDIF | |
44 | XSLTPROC = xsltproc.exe | |
45 | XMLLINT = xmllint.exe | |
46 | HTML_XSL = $(DOCBOOK_XSL)/html/chunk.xsl | |
47 | HTML_PARMS = --param navig.graphics 1 --stringparam navig.graphics.path ../ | |
48 | CHM_XSL = $(DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl | |
49 | BOOK = auusg000.xml | |
50 | ||
51 | XMLSRCS = \ | |
52 | $(BOOK) \ | |
53 | auusg003.xml \ | |
54 | auusg004.xml \ | |
55 | auusg005.xml \ | |
56 | auusg006.xml \ | |
57 | auusg007.xml \ | |
58 | auusg008.xml \ | |
59 | auusg009.xml \ | |
60 | auusg010.xml \ | |
61 | auusg011.xml \ | |
62 | auusg012.xml \ | |
63 | $(VERSFILE).xml | |
64 | ||
65 | index.html: $(XMLSRCS) | |
66 | @echo Building OpenAFS User Guide in HTML format | |
67 | $(XSLTPROC) $(HTML_PARMS) $(HTML_XSL) $(BOOK) | |
68 | ||
69 | htmlhelp.chm: $(XMLSRCS) | |
70 | @echo Building OpenAFS User Guide in HTML Help format | |
71 | $(XSLTPROC) $(CHM_XSL) $(BOOK) | |
72 | -hhc.exe htmlhelp.hhp | |
73 | $(DEL) *.html | |
74 | $(DEL) *.hh? | |
75 | $(DEL) *.chw | |
76 | ||
77 | check: $(XMLSRCS) | |
78 | $(XMLLINT) --noout --valid $(BOOK) | |
79 | ||
80 | install: check htmlhelp.chm index.html | |
81 | ||
82 | clean:: | |
83 | $(DEL) *.html | |
84 | $(DEL) htmlhelp.chm | |
85 | $(DEL) $(VERSFILE).xml |