Makefile.in 3.65 KB
Newer Older
1
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
#
3 4 5
# 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/.
6 7 8
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
Mark Andrews's avatar
Mark Andrews committed
9

10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

@BIND9_MAKE_RULES@

PERL = @PERL@

MANOBJS = options

doc man:: ${MANOBJS}

docclean manclean maintainer-clean::
	rm -f options

25 26 27 28 29 30 31 32
# Do not make options depend on ../../bin/tests/cfg_test, doing so
# will cause excessively clever versions of make to attempt to build
# that program right here, right now, if it is missing, which will
# cause make doc to bomb.

CFG_TEST = ../../bin/tests/cfg_test

options: FORCE
33 34 35
	if test -x ${CFG_TEST} ; \
	then \
		${CFG_TEST} --named --grammar > $@.raw ; \
36 37
		${CFG_TEST} --zonegrammar master > master.zoneopt ; \
		${CFG_TEST} --zonegrammar slave > slave.zoneopt ; \
Michał Kępień's avatar
Michał Kępień committed
38
		${CFG_TEST} --zonegrammar mirror > mirror.zoneopt ; \
39 40 41 42 43 44 45
		${CFG_TEST} --zonegrammar forward > forward.zoneopt ; \
		${CFG_TEST} --zonegrammar hint > hint.zoneopt ; \
		${CFG_TEST} --zonegrammar stub > stub.zoneopt ; \
		${CFG_TEST} --zonegrammar static-stub > static-stub.zoneopt ; \
		${CFG_TEST} --zonegrammar redirect > redirect.zoneopt ; \
		${CFG_TEST} --zonegrammar delegation-only > delegation-only.zoneopt ; \
		${CFG_TEST} --zonegrammar in-view > in-view.zoneopt ; \
46 47
		${PERL} ${srcdir}/sort-options.pl < $@.raw > $@.sorted ; \
		${PERL} ${srcdir}/format-options.pl < $@.sorted > $@.new ; \
48
		mv -f $@.new $@ ; \
49
		rm -f $@.raw $@.sorted ; \
50
	else \
51
		rm -f $@.new $@.raw $@.sorted ; \
52
	fi
53 54 55

docbook: options
	${PERL} docbook-options.pl options > ${top_srcdir}/bin/named/named.conf.docbook
56 57
	${PERL} docbook-zoneopt.pl master.zoneopt > ${top_srcdir}/doc/arm/master.zoneopt.xml
	${PERL} docbook-zoneopt.pl slave.zoneopt > ${top_srcdir}/doc/arm/slave.zoneopt.xml
Michał Kępień's avatar
Michał Kępień committed
58
	${PERL} docbook-zoneopt.pl mirror.zoneopt > ${top_srcdir}/doc/arm/mirror.zoneopt.xml
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
	${PERL} docbook-zoneopt.pl forward.zoneopt > ${top_srcdir}/doc/arm/forward.zoneopt.xml
	${PERL} docbook-zoneopt.pl hint.zoneopt > ${top_srcdir}/doc/arm/hint.zoneopt.xml
	${PERL} docbook-zoneopt.pl stub.zoneopt > ${top_srcdir}/doc/arm/stub.zoneopt.xml
	${PERL} docbook-zoneopt.pl static-stub.zoneopt > ${top_srcdir}/doc/arm/static-stub.zoneopt.xml
	${PERL} docbook-zoneopt.pl redirect.zoneopt > ${top_srcdir}/doc/arm/redirect.zoneopt.xml
	${PERL} docbook-zoneopt.pl delegation-only.zoneopt > ${top_srcdir}/doc/arm/delegation-only.zoneopt.xml
	${PERL} docbook-zoneopt.pl in-view.zoneopt > ${top_srcdir}/doc/arm/in-view.zoneopt.xml
	${PERL} docbook-grammars.pl options acl > ${top_srcdir}/doc/arm/acl.grammar.xml
	${PERL} docbook-grammars.pl options controls > ${top_srcdir}/doc/arm/controls.grammar.xml
	${PERL} docbook-grammars.pl options key > ${top_srcdir}/doc/arm/key.grammar.xml
	${PERL} docbook-grammars.pl options logging > ${top_srcdir}/doc/arm/logging.grammar.xml
	${PERL} docbook-grammars.pl options masters > ${top_srcdir}/doc/arm/masters.grammar.xml
	${PERL} docbook-grammars.pl options options > ${top_srcdir}/doc/arm/options.grammar.xml
	${PERL} docbook-grammars.pl options server > ${top_srcdir}/doc/arm/server.grammar.xml
	${PERL} docbook-grammars.pl options statistics-channels > ${top_srcdir}/doc/arm/statistics-channels.grammar.xml
Evan Hunt's avatar
Evan Hunt committed
74
	${PERL} docbook-grammars.pl options dnssec-keys > ${top_srcdir}/doc/arm/dnssec-keys.grammar.xml
75
	${PERL} docbook-grammars.pl options managed-keys > ${top_srcdir}/doc/arm/managed-keys.grammar.xml
Evan Hunt's avatar
Evan Hunt committed
76
	${PERL} docbook-grammars.pl options trusted-keys > ${top_srcdir}/doc/arm/trusted-keys.grammar.xml