Blame Makefile.in

Packit Service ae04f2
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Packit Service ae04f2
#
Packit Service ae04f2
# This Source Code Form is subject to the terms of the Mozilla Public
Packit Service ae04f2
# License, v. 2.0. If a copy of the MPL was not distributed with this
Packit Service ae04f2
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Packit Service ae04f2
#
Packit Service ae04f2
# See the COPYRIGHT file distributed with this work for additional
Packit Service ae04f2
# information regarding copyright ownership.
Packit Service ae04f2
Packit Service ae04f2
srcdir =	@srcdir@
Packit Service ae04f2
VPATH =		@srcdir@
Packit Service ae04f2
top_srcdir =	@top_srcdir@
Packit Service ae04f2
top_builddir =  @top_builddir@
Packit Service ae04f2
Packit Service ae04f2
VERSION=@BIND9_VERSION@
Packit Service ae04f2
Packit Service ae04f2
SUBDIRS =	make lib bin doc
Packit Service ae04f2
TARGETS =
Packit Service ae04f2
PREREQS =	bind.keys.h
Packit Service ae04f2
Packit Service ae04f2
MANPAGES =	isc-config.sh.1
Packit Service ae04f2
Packit Service ae04f2
HTMLPAGES =	isc-config.sh.html
Packit Service ae04f2
Packit Service ae04f2
MANOBJS =	README HISTORY OPTIONS ${MANPAGES} ${HTMLPAGES}
Packit Service ae04f2
Packit Service ae04f2
@BIND9_MAKE_RULES@
Packit Service ae04f2
Packit Service ae04f2
newrr:
Packit Service ae04f2
	cd lib/dns; ${MAKE} newrr
Packit Service ae04f2
Packit Service ae04f2
bind.keys.h: ${top_srcdir}/bind.keys ${srcdir}/util/bindkeys.pl
Packit Service ae04f2
	${PERL} ${srcdir}/util/bindkeys.pl < ${top_srcdir}/bind.keys > $@
Packit Service ae04f2
Packit Service ae04f2
distclean::
Packit Service ae04f2
	rm -f config.cache config.h config.log config.status TAGS
Packit Service ae04f2
	rm -f libtool isc-config.sh configure.lineno
Packit Service ae04f2
	rm -f util/conf.sh docutil/docbook2man-wrapper.sh
Packit Service ae04f2
Packit Service ae04f2
# XXX we should clean libtool stuff too.  Only do this after we add rules
Packit Service ae04f2
# to make it.
Packit Service ae04f2
maintainer-clean::
Packit Service ae04f2
	rm -f configure
Packit Service ae04f2
	rm -f bind.keys.h
Packit Service ae04f2
Packit Service ae04f2
docclean manclean maintainer-clean::
Packit Service ae04f2
	rm -f ${MANOBJS}
Packit Service ae04f2
Packit Service ae04f2
doc man:: ${MANOBJS}
Packit Service ae04f2
Packit Service ae04f2
installdirs:
Packit Service ae04f2
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} \
Packit Service ae04f2
	${DESTDIR}${localstatedir}/run ${DESTDIR}${sysconfdir}
Packit Service ae04f2
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
Packit Service ae04f2
Packit Service ae04f2
install:: isc-config.sh installdirs
Packit Service ae04f2
	${INSTALL_SCRIPT} isc-config.sh ${DESTDIR}${bindir}
Packit Service ae04f2
	rm -f ${DESTDIR}${bindir}/bind9-config
Packit Service ae04f2
	@LN@ ${DESTDIR}${bindir}/isc-config.sh ${DESTDIR}${bindir}/bind9-config
Packit Service ae04f2
	${INSTALL_DATA} ${top_srcdir}/isc-config.sh.1 ${DESTDIR}${mandir}/man1
Packit Service ae04f2
	rm -f ${DESTDIR}${mandir}/man1/bind9-config.1
Packit Service ae04f2
	@LN@ ${DESTDIR}${mandir}/man1/isc-config.sh.1 ${DESTDIR}${mandir}/man1/bind9-config.1
Packit Service ae04f2
	${INSTALL_DATA} ${top_srcdir}/bind.keys ${DESTDIR}${sysconfdir}
Packit Service ae04f2
Packit Service ae04f2
uninstall::
Packit Service ae04f2
	rm -f ${DESTDIR}${sysconfdir}/bind.keys
Packit Service ae04f2
	rm -f ${DESTDIR}${mandir}/man1/bind9-config.1
Packit Service ae04f2
	rm -f ${DESTDIR}${mandir}/man1/isc-config.sh.1
Packit Service ae04f2
	rm -f ${DESTDIR}${bindir}/bind9-config
Packit Service ae04f2
	rm -f ${DESTDIR}${bindir}/isc-config.sh
Packit Service ae04f2
Packit Service ae04f2
tags:
Packit Service ae04f2
	rm -f TAGS
Packit Service ae04f2
	find lib bin -name "*.[ch]" -print | @ETAGS@ -
Packit Service ae04f2
Packit Service ae04f2
test check:
Packit Service ae04f2
	@if test -n "`${PERL} ${top_srcdir}/bin/tests/system/testsock.pl 2>/dev/null || echo fail`"; then \
Packit Service ae04f2
	echo I: NOTE: The tests were not run because they require that; \
Packit Service ae04f2
	echo I:	the IP addresses 10.53.0.1 through 10.53.0.8 are configured; \
Packit Service ae04f2
	echo I:	as alias addresses on the loopback interface.  Please run; \
Packit Service ae04f2
	echo I:	\'bin/tests/system/ifconfig.sh up\' as root to configure; \
Packit Service ae04f2
	echo I:	them, then rerun the tests. Run make force-test to run the; \
Packit Service ae04f2
	echo I:	tests anyway.; \
Packit Service ae04f2
	exit 1; \
Packit Service ae04f2
	fi
Packit Service ae04f2
	${MAKE} test-force
Packit Service ae04f2
Packit Service ae04f2
force-test: test-force
Packit Service ae04f2
Packit Service ae04f2
test-force:
Packit Service ae04f2
	status=0; \
Packit Service ae04f2
	(cd bin/tests && ${MAKE} ${MAKEDEFS} test) || status=1; \
Packit Service ae04f2
	(test -f ${top_builddir}/unit/unittest.sh && \
Packit Service ae04f2
		$(SHELL) ${top_builddir}/unit/unittest.sh) || status=1; \
Packit Service ae04f2
	exit $$status
Packit Service ae04f2
Packit Service ae04f2
README: README.md
Packit Service ae04f2
	${PANDOC} --email-obfuscation=none -s --metadata title="README" -f markdown-smart -t html README.md | \
Packit Service ae04f2
		${W3M} -dump -cols 75 -O utf-8 -T text/html | \
Packit Service ae04f2
		sed -e '$${/^$$/d;}' > $@
Packit Service ae04f2
Packit Service ae04f2
HISTORY: HISTORY.md
Packit Service ae04f2
	${PANDOC} --email-obfuscation=none -s --metadata title="HISTORY" -f markdown-smart -t html HISTORY.md | \
Packit Service ae04f2
		${W3M} -dump -cols 75 -O utf-8 -T text/html | \
Packit Service ae04f2
		sed -e '$${/^$$/d;}' > $@
Packit Service ae04f2
Packit Service ae04f2
OPTIONS: OPTIONS.md
Packit Service ae04f2
	${PANDOC} --email-obfuscation=none -s --metadata title="OPTIONS" -f markdown-smart -t html OPTIONS.md | \
Packit Service ae04f2
		${W3M} -dump -cols 75 -O utf-8 -T text/html | \
Packit Service ae04f2
		sed -e '$${/^$$/d;}' > $@
Packit Service ae04f2
Packit Service ae04f2
CONTRIBUTING: CONTRIBUTING.md
Packit Service ae04f2
	${PANDOC} --email-obfuscation=none -s --metadata title="CONTRIBUTING" -f markdown-smart -t html CONTRIBUTING.md | \
Packit Service ae04f2
		${W3M} -dump -cols 75 -O utf-8 -T text/html | \
Packit Service ae04f2
		sed -e '$${/^$$/d;}' > $@
Packit Service ae04f2
Packit Service ae04f2
unit::
Packit Service ae04f2
	sh ${top_builddir}/unit/unittest.sh
Packit Service ae04f2
Packit Service ae04f2
clean::