ignore some files
[tridge/bind9.git] / doc / Makefile
1 # Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2000, 2001  Internet Software Consortium.
3 #
4 # Permission to use, copy, modify, and/or distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
7 #
8 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 # PERFORMANCE OF THIS SOFTWARE.
15
16 # $Id: Makefile.in,v 1.11 2007/06/19 23:47:13 tbox Exp $
17
18 # This Makefile is a placeholder.  It exists merely to make
19 # sure that its directory gets created in the object directory
20 # tree when doing a build using separate object directories.
21
22 srcdir =        .
23
24 top_srcdir =    ..
25
26 SUBDIRS = arm misc xsl doxygen
27 TARGETS =
28
29 # Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
30 # Copyright (C) 1998-2003  Internet Software Consortium.
31 #
32 # Permission to use, copy, modify, and/or distribute this software for any
33 # purpose with or without fee is hereby granted, provided that the above
34 # copyright notice and this permission notice appear in all copies.
35 #
36 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
37 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
39 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
40 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
41 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42 # PERFORMANCE OF THIS SOFTWARE.
43
44 # $Id: rules.in,v 1.64.130.2 2009/01/10 23:46:57 tbox Exp $
45
46 ###
47 ### Common Makefile rules for BIND 9.
48 ###
49
50 ###
51 ### Paths
52 ###
53 ### Note: paths that vary by Makefile MUST NOT be listed
54 ### here, or they won't get expanded correctly.
55
56 prefix =        /home/tridge/project/bind9/prefix
57 exec_prefix =   ${prefix}
58 bindir =        ${exec_prefix}/bin
59 sbindir =       ${exec_prefix}/sbin
60 includedir =    ${prefix}/include
61 libdir =        ${exec_prefix}/lib
62 sysconfdir =    /etc/bind
63 localstatedir = /var
64 mandir =        $/share/man
65 datarootdir =   ${prefix}/share
66
67 DESTDIR =
68
69
70
71 top_builddir =  /home/tridge/project/bind9
72
73 ###
74 ### All
75 ###
76 ### Makefile may define:
77 ###     TARGETS
78
79 all: subdirs ${TARGETS}
80
81 ###
82 ### Subdirectories
83 ###
84 ### Makefile may define:
85 ###     SUBDIRS
86
87 ALL_SUBDIRS = ${SUBDIRS} nulldir
88
89 #
90 # We use a single-colon rule so that additional dependencies of
91 # subdirectories can be specified after the inclusion of this file.
92 # The "depend" target is treated the same way.
93 #
94 subdirs:
95         @for i in ${ALL_SUBDIRS}; do \
96                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
97                         echo "making all in `pwd`/$$i"; \
98                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" all) || exit 1; \
99                 fi; \
100         done
101
102 install:: all
103
104 install clean distclean maintainer-clean doc docclean man manclean::
105         @for i in ${ALL_SUBDIRS}; do \
106                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
107                         echo "making $@ in `pwd`/$$i"; \
108                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
109                 fi; \
110         done
111
112 ###
113 ### C Programs
114 ###
115 ### Makefile must define
116 ###     CC
117 ### Makefile may define
118 ###     CFLAGS
119 ###     LDFLAGS
120 ###     CINCLUDES
121 ###     CDEFINES
122 ###     CWARNINGS
123 ### User may define externally
124 ###     EXT_CFLAGS
125
126 CC =            ccache gcc
127 CFLAGS =        -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
128 LDFLAGS =       
129 STD_CINCLUDES = 
130 STD_CDEFINES =   -D_GNU_SOURCE
131 STD_CWARNINGS =  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing
132
133 BUILD_CC = ccache gcc
134 BUILD_CFLAGS = -fno-strict-aliasing -DDIG_SIGCHASE -g -I/usr/include/libxml2
135 BUILD_CPPFLAGS =  -D_GNU_SOURCE 
136 BUILD_LDFLAGS = 
137 BUILD_LIBS = -lcap -lpthread  -lxml2
138
139 .SUFFIXES:
140 .SUFFIXES: .c .lo
141
142 ALWAYS_INCLUDES = -I${top_builddir}
143 ALWAYS_DEFINES = -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
144 ALWAYS_WARNINGS =
145
146 ALL_CPPFLAGS = \
147         ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
148         ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
149
150 ALL_CFLAGS = ${EXT_CFLAGS} ${ALL_CPPFLAGS} ${CFLAGS} \
151         ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
152
153 .c.lo:
154         ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
155
156 SHELL = /bin/bash
157 LIBTOOL = $(SHELL) $(top_builddir)/libtool
158 LIBTOOL_MODE_COMPILE = ${LIBTOOL} --mode=compile
159 LIBTOOL_MODE_INSTALL = ${LIBTOOL} --mode=install
160 LIBTOOL_MODE_LINK = ${LIBTOOL} --mode=link
161 PURIFY = 
162
163 MKDEP = ${SHELL} ${top_builddir}/make/mkdep
164
165 cleandir: distclean
166 superclean: maintainer-clean
167
168 clean distclean maintainer-clean::
169         rm -f *.lo *.o *.lo *.la core *.core .depend
170         rm -rf .libs
171
172 distclean maintainer-clean::
173         rm -f Makefile
174
175 depend:
176         @for i in ${ALL_SUBDIRS}; do \
177                 if [ "$$i" != "nulldir" -a -d $$i ]; then \
178                         echo "making depend in `pwd`/$$i"; \
179                         (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
180                 fi; \
181         done
182         @if [ X"${VPATH}" != X ] ; then \
183                 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
184                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
185                         ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
186                         echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
187                         ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
188                         ${DEPENDEXTRA} \
189                 elif [ X"${SRCS}" != X ] ; then \
190                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
191                         ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
192                         ${DEPENDEXTRA} \
193                 elif [ X"${PSRCS}" != X ] ; then \
194                         echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
195                         ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
196                         ${DEPENDEXTRA} \
197                 fi \
198         else \
199                 if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
200                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
201                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
202                         echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
203                         ${MKDEP} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
204                         ${DEPENDEXTRA} \
205                 elif [ X"${SRCS}" != X ] ; then \
206                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
207                         ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
208                         ${DEPENDEXTRA} \
209                 elif [ X"${PSRCS}" != X ] ; then \
210                         echo ${MKDEP} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
211                         ${MKDEP} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
212                         ${DEPENDEXTRA} \
213                 fi \
214         fi
215
216 FORCE:
217
218 ###
219 ### Libraries
220 ###
221
222 AR =            /usr/bin/ar
223 ARFLAGS =       cruv
224 RANLIB =        ranlib
225
226 ###
227 ### Installation
228 ###
229
230 INSTALL =               /usr/bin/install -c
231 INSTALL_PROGRAM =       ${INSTALL}
232 LINK_PROGRAM =          ln -s
233 INSTALL_SCRIPT =        ${INSTALL}
234 INSTALL_DATA =          ${INSTALL} -m 644
235
236 ###
237 ### Programs used when generating documentation.  It's ok for these
238 ### not to exist when not generating documentation.
239 ###
240
241 XSLTPROC =              /usr/bin/xsltproc --novalid --xinclude --nonet
242 PERL =                  /usr/bin/perl
243 LATEX =                 /usr/bin/latex
244 PDFLATEX =              /usr/bin/pdflatex
245 W3M =                   /usr/bin/w3m
246
247 ###
248 ### DocBook -> HTML
249 ### DocBook -> man page
250 ###
251
252 .SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
253
254 .docbook.html:
255         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-docbook-html.xsl $<
256
257 .docbook.1:
258         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
259
260 .docbook.2:
261         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
262
263 .docbook.3:
264         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
265
266 .docbook.4:
267         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
268
269 .docbook.5:
270         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
271
272 .docbook.6:
273         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
274
275 .docbook.7:
276         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<
277
278 .docbook.8:
279         ${XSLTPROC} -o $@ ${top_srcdir}/doc/xsl/isc-manpage.xsl $<