2 dnl ### NSC -- Makefile Builder
3 dnl ### (c) 1997--2003 Martin Mares <mj@ucw.cz>
7 # Definition of primary domains; secondaries we needn't take care of
9 define(`PRIMARIES', `')
11 define(`nsc_prepend_cf_one', ` 'CFDIR/`$1')
12 define(`nsc_prepend_cf_multi', `nsc_iterate(`nsc_prepend_cf_one', $@)')
13 define(`PRIMARY', `divert(0)ZONEDIR/$1:nsc_prepend_cf_multi($@) $(DDEPS)
14 `$'(NSC)nsc_prepend_cf_multi($@) >ZONEDIR/$1 -DVERS=VERSDIR/$1
17 define(`PRIMARIES', PRIMARIES ZONEDIR/$1)
20 define(`REVERSE', `PRIMARY(nsc_if_v6($1,`nsc_revblock6($1)',`nsc_revaddr($1)'), shift($@))')
22 # Insertion of raw makefile material
24 define(`MAKEFILE', `divert(0)$1
29 define(`nsc_cleanup', `divert(0)VERSDIR/.version: CFDIR/domains ROOTCACHE`'PRIMARIES
31 touch VERSDIR/.version
34 find BAKDIR ZONEDIR -type f -maxdepth 1 | xargs rm -f
37 rm -f Makefile named.conf
40 find VERSDIR -type f -maxdepth 1 | xargs rm -f
45 `#' Nameserver Configuration Makefile
46 `#' Generated by NSCVER (mkmf.m4) on CURRENT_DATE
47 `#' Please don't edit manually
52 DDEPS=m4/nsc.m4 m4/dnslib.m4 cf/config