xref: /netbsd-src/external/mpl/bind/dist/doc/misc/Makefile.in (revision 901e7e84758515fbf39dfc064cb0b45ab146d8b0)
1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# SPDX-License-Identifier: MPL-2.0
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0.  If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12srcdir =	@srcdir@
13VPATH =		@srcdir@
14top_srcdir =	@top_srcdir@
15
16@BIND9_MAKE_RULES@
17
18PERL = @PERL@
19
20MANOBJS = options
21
22doc man:: ${MANOBJS}
23
24docclean manclean maintainer-clean::
25	rm -f options
26
27# Do not make options depend on ../../bin/tests/cfg_test, doing so
28# will cause excessively clever versions of make to attempt to build
29# that program right here, right now, if it is missing, which will
30# cause make doc to bomb.
31
32CFG_TEST = ../../bin/tests/cfg_test
33
34options: FORCE
35	if test -x ${CFG_TEST} ; \
36	then \
37		${CFG_TEST} --named --grammar > $@.raw ; \
38		${PERL} ${srcdir}/sort-options.pl < $@.raw > $@.sorted ; \
39		${PERL} ${srcdir}/format-options.pl < $@.sorted > $@.new ; \
40		mv -f $@.new $@ ; \
41		${CFG_TEST} --named --grammar --active > $@.raw ; \
42		${PERL} ${srcdir}/sort-options.pl < $@.raw > $@.sorted ; \
43		${PERL} ${srcdir}/format-options.pl < $@.sorted > $@.new ; \
44		mv -f $@.new $@.active ; \
45		rm -f $@.raw $@.sorted ; \
46		${CFG_TEST} --zonegrammar master --active > master.zoneopt ; \
47		${CFG_TEST} --zonegrammar slave --active > slave.zoneopt ; \
48		${CFG_TEST} --zonegrammar mirror --active > mirror.zoneopt ; \
49		${CFG_TEST} --zonegrammar forward --active > forward.zoneopt ; \
50		${CFG_TEST} --zonegrammar hint --active > hint.zoneopt ; \
51		${CFG_TEST} --zonegrammar stub --active > stub.zoneopt ; \
52		${CFG_TEST} --zonegrammar static-stub --active > static-stub.zoneopt ; \
53		${CFG_TEST} --zonegrammar redirect --active > redirect.zoneopt ; \
54		${CFG_TEST} --zonegrammar delegation-only --active > delegation-only.zoneopt ; \
55		${CFG_TEST} --zonegrammar in-view --active > in-view.zoneopt ; \
56	else \
57		rm -f $@.new $@.raw $@.sorted ; \
58	fi
59
60rst: options rst-options.pl rst-zoneopt.pl rst-grammars.pl
61	${PERL} rst-options.pl options.active > ${top_srcdir}/bin/named/named.conf.rst
62	${PERL} rst-zoneopt.pl master.zoneopt > master.zoneopt.rst
63	${PERL} rst-zoneopt.pl slave.zoneopt > slave.zoneopt.rst
64	${PERL} rst-zoneopt.pl mirror.zoneopt > mirror.zoneopt.rst
65	${PERL} rst-zoneopt.pl forward.zoneopt > forward.zoneopt.rst
66	${PERL} rst-zoneopt.pl hint.zoneopt > hint.zoneopt.rst
67	${PERL} rst-zoneopt.pl stub.zoneopt > stub.zoneopt.rst
68	${PERL} rst-zoneopt.pl static-stub.zoneopt > static-stub.zoneopt.rst
69	${PERL} rst-zoneopt.pl redirect.zoneopt > redirect.zoneopt.rst
70	${PERL} rst-zoneopt.pl delegation-only.zoneopt > delegation-only.zoneopt.rst
71	${PERL} rst-zoneopt.pl in-view.zoneopt > in-view.zoneopt.rst
72	${PERL} rst-grammars.pl options.active acl > acl.grammar.rst
73	${PERL} rst-grammars.pl options.active controls > controls.grammar.rst
74	${PERL} rst-grammars.pl options.active key > key.grammar.rst
75	${PERL} rst-grammars.pl options.active logging > logging.grammar.rst
76	${PERL} rst-grammars.pl options.active parental-agents > parental-agents.grammar.rst
77	${PERL} rst-grammars.pl options.active primaries > primaries.grammar.rst
78	${PERL} rst-grammars.pl options.active options > options.grammar.rst
79	${PERL} rst-grammars.pl options.active server > server.grammar.rst
80	${PERL} rst-grammars.pl options.active statistics-channels > statistics-channels.grammar.rst
81	${PERL} rst-grammars.pl options.active trust-anchors > trust-anchors.grammar.rst
82	${PERL} rst-grammars.pl options.active managed-keys > managed-keys.grammar.rst
83	${PERL} rst-grammars.pl options.active trusted-keys > trusted-keys.grammar.rst
84