2018-02-23 03:53:12 -05:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 21:39:47 -04:00
|
|
|
#
|
2016-06-27 00:56:38 -04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
2004-03-05 00:14:21 -05:00
|
|
|
|
1998-12-11 21:00:01 -05:00
|
|
|
srcdir = @srcdir@
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
top_srcdir = @top_srcdir@
|
2018-02-22 09:32:16 -05:00
|
|
|
top_builddir = @top_builddir@
|
1998-12-11 21:00:01 -05:00
|
|
|
|
2015-11-09 00:34:24 -05:00
|
|
|
VERSION=@BIND9_VERSION@
|
1998-12-11 15:10:26 -05:00
|
|
|
|
2018-11-14 17:33:00 -05:00
|
|
|
SUBDIRS = make lib fuzz bin doc
|
1998-12-11 15:10:26 -05:00
|
|
|
TARGETS =
|
2014-02-16 16:03:17 -05:00
|
|
|
PREREQS = bind.keys.h
|
1998-12-11 15:10:26 -05:00
|
|
|
|
2019-07-31 07:54:46 -04:00
|
|
|
MANOBJS = README HISTORY OPTIONS CONTRIBUTING PLATFORMS CODE_OF_CONDUCT \
|
2018-05-24 02:19:17 -04:00
|
|
|
${MANPAGES} ${HTMLPAGES}
|
2009-02-18 18:21:50 -05:00
|
|
|
|
1998-12-11 15:10:26 -05:00
|
|
|
@BIND9_MAKE_RULES@
|
|
|
|
|
|
2015-12-08 00:39:05 -05:00
|
|
|
newrr:
|
|
|
|
|
cd lib/dns; ${MAKE} newrr
|
|
|
|
|
|
2014-02-16 16:03:17 -05:00
|
|
|
bind.keys.h: ${top_srcdir}/bind.keys ${srcdir}/util/bindkeys.pl
|
|
|
|
|
${PERL} ${srcdir}/util/bindkeys.pl < ${top_srcdir}/bind.keys > $@
|
|
|
|
|
|
1999-07-14 21:40:23 -04:00
|
|
|
distclean::
|
2000-06-23 17:22:20 -04:00
|
|
|
rm -f config.cache config.h config.log config.status TAGS
|
2019-06-26 04:21:49 -04:00
|
|
|
rm -f libtool configure.lineno
|
2002-12-12 21:01:52 -05:00
|
|
|
rm -f util/conf.sh docutil/docbook2man-wrapper.sh
|
1998-12-11 15:10:26 -05:00
|
|
|
|
2001-03-27 14:36:55 -05:00
|
|
|
# XXX we should clean libtool stuff too. Only do this after we add rules
|
|
|
|
|
# to make it.
|
|
|
|
|
maintainer-clean::
|
|
|
|
|
rm -f configure
|
2014-02-16 16:03:17 -05:00
|
|
|
rm -f bind.keys.h
|
2001-03-27 14:36:55 -05:00
|
|
|
|
2009-02-18 18:21:50 -05:00
|
|
|
docclean manclean maintainer-clean::
|
|
|
|
|
rm -f ${MANOBJS}
|
|
|
|
|
|
|
|
|
|
doc man:: ${MANOBJS}
|
|
|
|
|
|
2000-09-20 14:05:33 -04:00
|
|
|
installdirs:
|
2006-05-17 20:59:40 -04:00
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} \
|
|
|
|
|
${DESTDIR}${localstatedir}/run ${DESTDIR}${sysconfdir}
|
2009-02-18 18:21:50 -05:00
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
|
2000-09-20 14:05:33 -04:00
|
|
|
|
2019-06-26 04:21:49 -04:00
|
|
|
install:: installdirs
|
2009-06-25 13:06:42 -04:00
|
|
|
${INSTALL_DATA} ${top_srcdir}/bind.keys ${DESTDIR}${sysconfdir}
|
2000-06-23 17:19:05 -04:00
|
|
|
|
2016-11-01 22:17:07 -04:00
|
|
|
uninstall::
|
|
|
|
|
rm -f ${DESTDIR}${sysconfdir}/bind.keys
|
|
|
|
|
|
2013-04-04 18:07:28 -04:00
|
|
|
test check:
|
2018-04-24 14:58:58 -04:00
|
|
|
@if test -n "`${PERL} ${top_srcdir}/bin/tests/system/testsock.pl 2>/dev/null || echo fail`"; then \
|
2013-03-26 15:46:44 -04:00
|
|
|
echo I: NOTE: The tests were not run because they require that; \
|
|
|
|
|
echo I: the IP addresses 10.53.0.1 through 10.53.0.8 are configured; \
|
|
|
|
|
echo I: as alias addresses on the loopback interface. Please run; \
|
|
|
|
|
echo I: \'bin/tests/system/ifconfig.sh up\' as root to configure; \
|
|
|
|
|
echo I: them, then rerun the tests. Run make force-test to run the; \
|
|
|
|
|
echo I: tests anyway.; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
|
|
|
|
${MAKE} test-force
|
|
|
|
|
|
|
|
|
|
force-test: test-force
|
|
|
|
|
|
|
|
|
|
test-force:
|
2011-09-05 23:59:58 -04:00
|
|
|
status=0; \
|
2018-07-03 09:45:11 -04:00
|
|
|
(cd fuzz && ${MAKE} check) || status=1; \
|
2011-09-05 23:59:58 -04:00
|
|
|
(cd bin/tests && ${MAKE} ${MAKEDEFS} test) || status=1; \
|
2018-02-22 09:32:16 -05:00
|
|
|
(test -f ${top_builddir}/unit/unittest.sh && \
|
|
|
|
|
$(SHELL) ${top_builddir}/unit/unittest.sh) || status=1; \
|
2011-09-06 00:06:37 -04:00
|
|
|
exit $$status
|
2005-08-17 18:55:57 -04:00
|
|
|
|
2017-04-20 22:21:54 -04:00
|
|
|
README: README.md
|
2019-06-10 00:26:55 -04:00
|
|
|
${PANDOC} --email-obfuscation=none -s --metadata title="README" -f markdown-smart -t html README.md | \
|
2018-03-08 08:00:45 -05:00
|
|
|
${W3M} -dump -cols 75 -O ascii -T text/html | \
|
|
|
|
|
sed -e '$${/^$$/d;}' > $@
|
2017-04-20 22:21:54 -04:00
|
|
|
|
|
|
|
|
HISTORY: HISTORY.md
|
2019-06-10 00:26:55 -04:00
|
|
|
${PANDOC} --email-obfuscation=none -s --metadata title="HISTORY" -f markdown-smart -t html HISTORY.md | \
|
2018-03-08 08:00:45 -05:00
|
|
|
${W3M} -dump -cols 75 -O ascii -T text/html | \
|
|
|
|
|
sed -e '$${/^$$/d;}' > $@
|
2017-04-20 22:21:54 -04:00
|
|
|
|
|
|
|
|
OPTIONS: OPTIONS.md
|
2019-06-10 00:26:55 -04:00
|
|
|
${PANDOC} --email-obfuscation=none -s --metadata title="OPTIONS" -f markdown-smart -t html OPTIONS.md | \
|
2018-03-08 08:00:45 -05:00
|
|
|
${W3M} -dump -cols 75 -O ascii -T text/html | \
|
|
|
|
|
sed -e '$${/^$$/d;}' > $@
|
2005-08-17 18:55:57 -04:00
|
|
|
|
2018-02-27 17:39:51 -05:00
|
|
|
CONTRIBUTING: CONTRIBUTING.md
|
2019-06-10 00:26:55 -04:00
|
|
|
${PANDOC} --email-obfuscation=none -s --metadata title="CONTRIBUTING" -f markdown-smart -t html CONTRIBUTING.md | \
|
2018-03-08 08:00:45 -05:00
|
|
|
${W3M} -dump -cols 75 -O ascii -T text/html | \
|
|
|
|
|
sed -e '$${/^$$/d;}' > $@
|
2018-02-27 17:39:51 -05:00
|
|
|
|
2018-05-24 02:19:17 -04:00
|
|
|
PLATFORMS: PLATFORMS.md
|
2019-06-10 00:26:55 -04:00
|
|
|
${PANDOC} --email-obfuscation=none -s --metadata title="PLATFORMS" -f markdown-smart -t html PLATFORMS.md | \
|
2018-05-24 02:19:17 -04:00
|
|
|
${W3M} -dump -cols 75 -O ascii -T text/html | \
|
|
|
|
|
sed -e '$${/^$$/d;}' > $@
|
|
|
|
|
|
2019-07-31 07:54:46 -04:00
|
|
|
CODE_OF_CONDUCT: CODE_OF_CONDUCT.md
|
2019-09-09 08:50:38 -04:00
|
|
|
${PANDOC} --email-obfuscation=none -s --metadata title="CODE OF CONDUCT" -f markdown-smart -t html CODE_OF_CONDUCT.md | \
|
2019-07-31 07:54:46 -04:00
|
|
|
${W3M} -dump -cols 75 -O ascii -T text/html | \
|
|
|
|
|
sed -e '$${/^$$/d;}' > $@
|
|
|
|
|
|
2014-01-10 11:05:42 -05:00
|
|
|
unit::
|
2018-02-22 09:32:16 -05:00
|
|
|
sh ${top_builddir}/unit/unittest.sh
|
2014-01-10 11:05:42 -05:00
|
|
|
|
2005-08-17 18:55:57 -04:00
|
|
|
clean::
|