Makefile.in 2.14 KB
Newer Older
Lamont Jones's avatar
Lamont Jones committed
1
# Copyright (C) 2004-2009  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 6
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
7
#
8 9 10 11 12 13 14 15
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

16
# $Id: Makefile.in,v 1.55 2009/03/04 02:42:30 each Exp $
17

18 19 20 21 22 23
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

@BIND9_VERSION@

24
SUBDIRS =	make lib bin doc
25 26
TARGETS =

Lamont Jones's avatar
Lamont Jones committed
27 28 29 30 31 32
MANPAGES =	isc-config.sh.1
 
HTMLPAGES =	isc-config.sh.html
 
MANOBJS =	${MANPAGES} ${HTMLPAGES}

33 34 35
@BIND9_MAKE_RULES@

distclean::
36
	rm -f config.cache config.h config.log config.status TAGS
37 38
	rm -f libtool isc-config.sh configure.lineno
	rm -f util/conf.sh docutil/docbook2man-wrapper.sh
39

40 41 42 43 44
# XXX we should clean libtool stuff too.  Only do this after we add rules
# to make it.
maintainer-clean::
	rm -f configure

Lamont Jones's avatar
Lamont Jones committed
45 46 47 48 49
docclean manclean maintainer-clean::
	rm -f ${MANOBJS}

doc man:: ${MANOBJS}

50
installdirs:
51 52
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} \
	${DESTDIR}${localstatedir}/run ${DESTDIR}${sysconfdir}
Lamont Jones's avatar
Lamont Jones committed
53
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
54

55
install:: isc-config.sh installdirs
56
	${INSTALL_SCRIPT} isc-config.sh ${DESTDIR}${bindir}
Lamont Jones's avatar
Lamont Jones committed
57
	${INSTALL_DATA} ${srcdir}/isc-config.sh.1 ${DESTDIR}${mandir}/man1
58
	${INSTALL_DATA} bind.keys ${DESTDIR}${sysconfdir}
59

60 61
tags:
	rm -f TAGS
62
	find lib bin -name "*.[ch]" -print | @ETAGS@ -
63 64 65 66 67

check: test

test:
	(cd bin/tests && ${MAKE} ${MAKEDEFS} test)
68 69 70

FAQ: FAQ.xml
	${XSLTPROC} doc/xsl/isc-docbook-text.xsl FAQ.xml | \
71
	LC_ALL=C ${W3M} -T text/html -dump -cols 72 >$@.tmp
72 73 74 75
	mv $@.tmp $@

clean::
	rm -f FAQ.tmp