]> CyberLeo.Net >> Repos - FreeBSD/releng/9.3.git/blob - contrib/bind9/Makefile.in
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
[FreeBSD/releng/9.3.git] / contrib / bind9 / Makefile.in
1 # Copyright (C) 2004-2009, 2011-2014  Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1998-2002  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.62 2011/09/06 04:06:37 marka Exp $
17
18 srcdir =        @srcdir@
19 VPATH =         @srcdir@
20 top_srcdir =    @top_srcdir@
21
22 @BIND9_VERSION@
23
24 SUBDIRS =       make unit lib bin doc @LIBEXPORT@
25 TARGETS =
26
27 MANPAGES =      isc-config.sh.1
28
29 HTMLPAGES =     isc-config.sh.html
30
31 MANOBJS =       ${MANPAGES} ${HTMLPAGES}
32
33 @BIND9_MAKE_RULES@
34
35 distclean::
36         rm -f config.cache config.h config.log config.status TAGS
37         rm -f libtool isc-config.sh configure.lineno
38         rm -f util/conf.sh docutil/docbook2man-wrapper.sh
39
40 # XXX we should clean libtool stuff too.  Only do this after we add rules
41 # to make it.
42 maintainer-clean::
43         rm -f configure
44
45 docclean manclean maintainer-clean::
46         rm -f ${MANOBJS}
47
48 doc man:: ${MANOBJS}
49
50 installdirs:
51         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} \
52         ${DESTDIR}${localstatedir}/run ${DESTDIR}${sysconfdir}
53         $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
54
55 install:: isc-config.sh installdirs
56         ${INSTALL_SCRIPT} isc-config.sh ${DESTDIR}${bindir}
57         rm -f ${DESTDIR}${bindir}/bind9-config
58         @LN@ ${DESTDIR}${bindir}/isc-config.sh ${DESTDIR}${bindir}/bind9-config
59         ${INSTALL_DATA} ${top_srcdir}/isc-config.sh.1 ${DESTDIR}${mandir}/man1
60         rm -f ${DESTDIR}${mandir}/man1/bind9-config.1
61         @LN@ ${DESTDIR}${mandir}/man1/isc-config.sh.1 ${DESTDIR}${mandir}/man1/bind9-config.1
62         ${INSTALL_DATA} ${top_srcdir}/bind.keys ${DESTDIR}${sysconfdir}
63
64 tags:
65         rm -f TAGS
66         find lib bin -name "*.[ch]" -print | @ETAGS@ -
67
68 test check:
69         @if test -n "`${PERL} ${top_srcdir}/bin/tests/system/testsock.pl 2>&- || echo fail`"; then \
70         echo I: NOTE: The tests were not run because they require that; \
71         echo I: the IP addresses 10.53.0.1 through 10.53.0.8 are configured; \
72         echo I: as alias addresses on the loopback interface.  Please run; \
73         echo I: \'bin/tests/system/ifconfig.sh up\' as root to configure; \
74         echo I: them, then rerun the tests. Run make force-test to run the; \
75         echo I: tests anyway.; \
76         exit 1; \
77         fi
78         ${MAKE} test-force
79
80 force-test: test-force
81
82 test-force:
83         status=0; \
84         (cd bin/tests && ${MAKE} ${MAKEDEFS} test) || status=1; \
85         (test -f unit/unittest.sh && $(SHELL) unit/unittest.sh) || status=1; \
86         exit $$status
87
88 FAQ: FAQ.xml
89         ${XSLTPROC} doc/xsl/isc-docbook-text.xsl FAQ.xml | \
90         LC_ALL=C ${W3M} -T text/html -dump -cols 72 >$@.tmp
91         mv $@.tmp $@
92
93 unit::
94         sh ${top_srcdir}/unit/unittest.sh
95
96 clean::
97         rm -f FAQ.tmp