]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] make sure static.zone is generated for new AUTHORS or version string.
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 27 Sep 2012 17:59:17 +0000 (10:59 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 27 Sep 2012 17:59:17 +0000 (10:59 -0700)
previously, once this zone file was generated, incremental build
(i.e., 'make' without 'make clean') may fail to update this file.
that would result in unexpected answer from b10-auth for *.bind
quieries, and would also cause unittest failures in auth/tests.

okayed on jabber.

src/lib/datasrc/Makefile.am

index 862de8a661ef42ced742f2f3544266c80d970656..eccc147a773e0e1ab81d571c83a732830fd62a24 100644 (file)
@@ -12,7 +12,9 @@ pkglibdir = $(libexecdir)/@PACKAGE@/backends
 datasrc_config.h: datasrc_config.h.pre
        $(SED) -e "s|@@PKGLIBDIR@@|$(pkglibdir)|" datasrc_config.h.pre >$@
 
-static.zone: static.zone.pre
+# The top config.h defines "PACKAGE_STRING".  When it's changed we neeed to
+# regenerate this zone file.
+static.zone: static.zone.pre $(top_builddir)/config.h $(top_srcdir)/AUTHORS
        $(SED) -e "s|@@VERSION_STRING@@|$(PACKAGE_STRING)|" $(srcdir)/static.zone.pre >$@
        $(SED) -e 's/\(.*\)/AUTHORS.BIND.       0       CH      TXT     "\1"/' $(top_srcdir)/AUTHORS >>$@