NTMakefile revision 1.1 1 1.1 elric ########################################################################
2 1.1 elric #
3 1.1 elric # Copyright (c) 2009, Secure Endpoints Inc.
4 1.1 elric # All rights reserved.
5 1.1 elric #
6 1.1 elric # Redistribution and use in source and binary forms, with or without
7 1.1 elric # modification, are permitted provided that the following conditions
8 1.1 elric # are met:
9 1.1 elric #
10 1.1 elric # - Redistributions of source code must retain the above copyright
11 1.1 elric # notice, this list of conditions and the following disclaimer.
12 1.1 elric #
13 1.1 elric # - Redistributions in binary form must reproduce the above copyright
14 1.1 elric # notice, this list of conditions and the following disclaimer in
15 1.1 elric # the documentation and/or other materials provided with the
16 1.1 elric # distribution.
17 1.1 elric #
18 1.1 elric # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 1.1 elric # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 1.1 elric # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 1.1 elric # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 1.1 elric # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 1.1 elric # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 1.1 elric # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 1.1 elric # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 1.1 elric # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 1.1 elric # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 1.1 elric # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.1 elric # POSSIBILITY OF SUCH DAMAGE.
30 1.1 elric #
31 1.1 elric
32 1.1 elric RELDIR=doc
33 1.1 elric
34 1.1 elric !include ../windows/NTMakefile.w32
35 1.1 elric
36 1.1 elric heimdal_TEXINFOS = \
37 1.1 elric $(OBJ)\ack.texi \
38 1.1 elric $(OBJ)\apps.texi \
39 1.1 elric $(OBJ)\copyright.texi \
40 1.1 elric $(OBJ)\heimdal.texi \
41 1.1 elric $(OBJ)\install.texi \
42 1.1 elric $(OBJ)\intro.texi \
43 1.1 elric $(OBJ)\kerberos4.texi \
44 1.1 elric $(OBJ)\migration.texi \
45 1.1 elric $(OBJ)\misc.texi \
46 1.1 elric $(OBJ)\programming.texi \
47 1.1 elric $(OBJ)\setup.texi \
48 1.1 elric $(OBJ)\vars.texi \
49 1.1 elric $(OBJ)\whatis.texi \
50 1.1 elric $(OBJ)\win2k.texi
51 1.1 elric
52 1.1 elric hx509_TEXINFOS = \
53 1.1 elric $(OBJ)\hx509.texi
54 1.1 elric
55 1.1 elric {}.texi{$(OBJ)}.texi:
56 1.1 elric $(CP) $** $@
57 1.1 elric
58 1.1 elric {}.tin{$(OBJ)}.texi:
59 1.1 elric $(SED) -e "s,[@]dbdir[@],x,g" \
60 1.1 elric -e "s,[@]PACKAGE_VERSION[@],$(VER_PACKAGE_VERSION),g" < $** > $@
61 1.1 elric
62 1.1 elric MAKEINFOFLAGS = --css-include=$(SRCDIR)/heimdal.css
63 1.1 elric
64 1.1 elric ######################################################################
65 1.1 elric # Build heimdal.chm
66 1.1 elric
67 1.1 elric # Copyrights-and-Licenses.html is where the table of contents ends up
68 1.1 elric # when generating HTML output using makeinfo. Same goes for
69 1.1 elric # How-to-use-the-PKCS11-module.html below.
70 1.1 elric
71 1.1 elric $(OBJ)\heimdal\index.html $(OBJ)\heimdal\Copyrights-and-Licenses.html: $(heimdal_TEXINFOS)
72 1.1 elric cd $(OBJ)
73 1.1 elric $(MAKEINFO) $(MAKEINFOFLAGS) --html heimdal.texi
74 1.1 elric cd $(SRCDIR)
75 1.1 elric
76 1.1 elric $(OBJ)\heimdal\toc.hhc: $(OBJ)\heimdal\Copyrights-and-Licenses.html
77 1.1 elric $(PERL) $(SRC)\cf\w32-hh-toc-from-info.pl -o$@ $**
78 1.1 elric
79 1.1 elric $(OBJ)\heimdal\heimdal.hhp: heimdal.hhp
80 1.1 elric $(CP) $** $@
81 1.1 elric
82 1.1 elric $(DOCDIR)\heimdal.chm: $(OBJ)\heimdal\heimdal.hhp $(OBJ)\heimdal\toc.hhc
83 1.1 elric cd $(OBJ)\heimdal
84 1.1 elric -$(HHC) heimdal.hhp
85 1.1 elric $(CP) heimdal.chm $@
86 1.1 elric cd $(SRCDIR)
87 1.1 elric
88 1.1 elric ######################################################################
89 1.1 elric # Build hx509.chm
90 1.1 elric
91 1.1 elric $(OBJ)\hx509\index.html $(OBJ)\hx509\How-to-use-the-PKCS11-module.html: $(hx509_TEXINFOS)
92 1.1 elric cd $(OBJ)
93 1.1 elric $(MAKEINFO) $(MAKEINFOFLAGS) --html hx509.texi
94 1.1 elric cd $(SRCDIR)
95 1.1 elric
96 1.1 elric $(OBJ)\hx509\toc.hhc: $(OBJ)\hx509\How-to-use-the-PKCS11-module.html
97 1.1 elric $(PERL) $(SRC)\cf\w32-hh-toc-from-info.pl -o$@ $**
98 1.1 elric
99 1.1 elric $(OBJ)\hx509\hx509.hhp: hx509.hhp
100 1.1 elric $(CP) $** $@
101 1.1 elric
102 1.1 elric $(DOCDIR)\hx509.chm: $(OBJ)\hx509\hx509.hhp $(OBJ)\hx509\toc.hhc
103 1.1 elric cd $(OBJ)\hx509
104 1.1 elric -$(HHC) hx509.hhp
105 1.1 elric $(CP) hx509.chm $@
106 1.1 elric cd $(SRCDIR)
107 1.1 elric
108 1.1 elric !ifndef NO_DOC
109 1.1 elric all:: $(OBJ)\heimdal\index.html $(OBJ)\hx509\index.html \
110 1.1 elric $(DOCDIR)\heimdal.chm $(DOCDIR)\hx509.chm
111 1.1 elric !endif
112 1.1 elric
113 1.1 elric clean::
114 1.1 elric -$(RM) $(OBJ)\heimdal\*.*
115 1.1 elric -$(RM) $(OBJ)\hx509\*.*
116 1.1 elric -$(RM) $(DOCDIR)\heimdal.chm
117 1.1 elric -$(RM) $(DOCDIR)\hx509.chm
118 1.1 elric
119 1.1 elric .SUFFIXES: .texi .tin
120