Fix "make dist"
Make various adjustments necessary to enable "make dist" to build a BIND source tarball whose contents are complete enough to build binaries, run unit & system tests, and generate documentation on Unix systems. Known outstanding issues: - "make distcheck" does not work yet. - Tests do not work for out-of-tree source-tarball-based builds. - Source tarballs are not complete enough for building on Windows. All of the above will be addressed in due course.
This commit is contained in:
committed by
Michał Kępień
parent
eaebc26451
commit
5bbc6dd7f1
11
Makefile.am
11
Makefile.am
@@ -11,3 +11,14 @@ bind.keys.h: bind.keys Makefile
|
|||||||
dist_sysconf_DATA = bind.keys
|
dist_sysconf_DATA = bind.keys
|
||||||
|
|
||||||
.PHONY: doc
|
.PHONY: doc
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
util/bindkeys.pl \
|
||||||
|
contrib \
|
||||||
|
CHANGES \
|
||||||
|
COPYRIGHT \
|
||||||
|
LICENSE \
|
||||||
|
*.md
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
find $(distdir) -type f -name .gitignore -delete
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ nodist_named_SOURCES = xsl.c
|
|||||||
BUILT_SOURCES = xsl.c
|
BUILT_SOURCES = xsl.c
|
||||||
CLEANFILES = xsl.c
|
CLEANFILES = xsl.c
|
||||||
|
|
||||||
|
EXTRA_DIST = bind9.xsl
|
||||||
|
|
||||||
xsl.c: bind9.xsl Makefile
|
xsl.c: bind9.xsl Makefile
|
||||||
(echo 'const char xslmsg[] =' && \
|
(echo 'const char xslmsg[] =' && \
|
||||||
$(SED) -e 's,\",\\\",g' \
|
$(SED) -e 's,\",\\\",g' \
|
||||||
@@ -61,6 +63,7 @@ named_SOURCES = \
|
|||||||
zoneconf.c \
|
zoneconf.c \
|
||||||
unix/dlz_dlopen_driver.c \
|
unix/dlz_dlopen_driver.c \
|
||||||
unix/os.c \
|
unix/os.c \
|
||||||
|
include/dlz/dlz_dlopen_driver.h \
|
||||||
include/named/builtin.h \
|
include/named/builtin.h \
|
||||||
include/named/config.h \
|
include/named/config.h \
|
||||||
include/named/control.h \
|
include/named/control.h \
|
||||||
|
|||||||
@@ -11,3 +11,5 @@ AM_CPPFLAGS += \
|
|||||||
LDADD = \
|
LDADD = \
|
||||||
$(LIBISC_LIBS) \
|
$(LIBISC_LIBS) \
|
||||||
$(LIBDNS_LIBS)
|
$(LIBDNS_LIBS)
|
||||||
|
|
||||||
|
EXTRA_DIST = prepare-softhsm2.sh
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
include $(top_srcdir)/Makefile.top
|
include $(top_srcdir)/Makefile.top
|
||||||
|
|
||||||
|
EXTRA_DIST = .
|
||||||
|
|
||||||
|
# Source tarballs must not contain configure/build artifacts.
|
||||||
|
dist-hook:
|
||||||
|
git clean -n -x -d | \
|
||||||
|
grep -v "Makefile.in$$" | \
|
||||||
|
sed -n "s|^Would remove \(.*\)|$(distdir)/\1|p" | \
|
||||||
|
xargs -I{} rm -rf "{}"
|
||||||
|
|
||||||
SUBDIRS = dyndb/driver dlzexternal/driver
|
SUBDIRS = dyndb/driver dlzexternal/driver
|
||||||
|
|
||||||
AM_CPPFLAGS += \
|
AM_CPPFLAGS += \
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ dlzexternal_LTLIBRARIES = dlzexternal.la
|
|||||||
dlzexternaldir = $(abs_builddir)
|
dlzexternaldir = $(abs_builddir)
|
||||||
|
|
||||||
dlzexternal_la_SOURCES = \
|
dlzexternal_la_SOURCES = \
|
||||||
driver.c
|
driver.c \
|
||||||
|
driver.h
|
||||||
|
|
||||||
dlzexternal_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
|
dlzexternal_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
|
||||||
|
|||||||
@@ -14,6 +14,13 @@ sample_la_SOURCES = \
|
|||||||
lock.c \
|
lock.c \
|
||||||
log.c \
|
log.c \
|
||||||
syncptr.c \
|
syncptr.c \
|
||||||
zone.c
|
zone.c \
|
||||||
|
db.h \
|
||||||
|
instance.h \
|
||||||
|
lock.h \
|
||||||
|
log.h \
|
||||||
|
syncptr.h \
|
||||||
|
util.h \
|
||||||
|
zone.h
|
||||||
|
|
||||||
sample_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
|
sample_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ AC_DEFINE_UNQUOTED([PACKAGE_CONFIGARGS], ["$bind_CONFIGARGS"], [Either 'defaults
|
|||||||
AC_DEFINE([PACKAGE_BUILDER], ["make"], [make or Visual Studio])
|
AC_DEFINE([PACKAGE_BUILDER], ["make"], [make or Visual Studio])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([bin/named/main.c])
|
AC_CONFIG_SRCDIR([bin/named/main.c])
|
||||||
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz -Wall -Werror])
|
AM_INIT_AUTOMAKE([1.9 tar-pax foreign subdir-objects dist-xz -Wall -Werror])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
AM_EXTRA_RECURSIVE_TARGETS([test unit doc])
|
AM_EXTRA_RECURSIVE_TARGETS([test unit doc])
|
||||||
|
|
||||||
|
|||||||
@@ -7,5 +7,3 @@ endif
|
|||||||
if HAVE_SPHINX_BUILD
|
if HAVE_SPHINX_BUILD
|
||||||
SUBDIRS += man arm
|
SUBDIRS += man arm
|
||||||
endif HAVE_SPHINX_BUILD
|
endif HAVE_SPHINX_BUILD
|
||||||
|
|
||||||
EXTRA_DIST = notes/
|
|
||||||
|
|||||||
@@ -1,49 +1,49 @@
|
|||||||
include $(top_srcdir)/Makefile.top
|
include $(top_srcdir)/Makefile.top
|
||||||
include $(top_srcdir)/Makefile.docs
|
include $(top_srcdir)/Makefile.docs
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
conf.py \
|
conf.py \
|
||||||
acl.grammar.rst \
|
advanced.rst \
|
||||||
advanced.rst \
|
catz.rst \
|
||||||
catz.rst \
|
configuration.rst \
|
||||||
configuration.rst \
|
dlz.rst \
|
||||||
controls.grammar.rst \
|
dnssec.rst \
|
||||||
delegation-only.zoneopt.rst \
|
dyndb.rst \
|
||||||
dlz.rst \
|
general.rst \
|
||||||
dnssec-keys.grammar.rst \
|
history.rst \
|
||||||
dnssec.rst \
|
index.rst \
|
||||||
dyndb.rst \
|
introduction.rst \
|
||||||
forward.zoneopt.rst \
|
logging-categories.rst \
|
||||||
general.rst \
|
managed-keys.rst \
|
||||||
hint.zoneopt.rst \
|
manpages.rst \
|
||||||
history.rst \
|
notes.rst \
|
||||||
in-view.zoneopt.rst \
|
pkcs11.rst \
|
||||||
index.rst \
|
plugins.rst \
|
||||||
introduction.rst \
|
reference.rst \
|
||||||
key.grammar.rst \
|
requirements.rst \
|
||||||
logging-categories.rst \
|
security.rst \
|
||||||
logging.grammar.rst \
|
troubleshooting.rst \
|
||||||
managed-keys.grammar.rst \
|
../misc/acl.grammar.rst \
|
||||||
managed-keys.rst \
|
../misc/controls.grammar.rst \
|
||||||
manpages.rst \
|
../misc/delegation-only.zoneopt.rst \
|
||||||
master.zoneopt.rst \
|
../misc/forward.zoneopt.rst \
|
||||||
masters.grammar.rst \
|
../misc/hint.zoneopt.rst \
|
||||||
mirror.zoneopt.rst \
|
../misc/in-view.zoneopt.rst \
|
||||||
notes.rst \
|
../misc/key.grammar.rst \
|
||||||
options.grammar.rst \
|
../misc/logging.grammar.rst \
|
||||||
pkcs11.rst \
|
../misc/managed-keys.grammar.rst \
|
||||||
plugins.rst \
|
../misc/master.zoneopt.rst \
|
||||||
redirect.zoneopt.rst \
|
../misc/masters.grammar.rst \
|
||||||
reference.rst \
|
../misc/mirror.zoneopt.rst \
|
||||||
requirements.rst \
|
../misc/options.grammar.rst \
|
||||||
security.rst \
|
../misc/redirect.zoneopt.rst \
|
||||||
server.grammar.rst \
|
../misc/server.grammar.rst \
|
||||||
slave.zoneopt.rst \
|
../misc/slave.zoneopt.rst \
|
||||||
static-stub.zoneopt.rst \
|
../misc/static-stub.zoneopt.rst \
|
||||||
statistics-channels.grammar.rst \
|
../misc/statistics-channels.grammar.rst \
|
||||||
stub.zoneopt.rst \
|
../misc/stub.zoneopt.rst \
|
||||||
troubleshooting.rst \
|
../misc/trusted-keys.grammar.rst \
|
||||||
trusted-keys.grammar.rst
|
../notes/*.rst
|
||||||
|
|
||||||
html-local:
|
html-local:
|
||||||
$(AM_V_SPHINX)$(SPHINX_BUILD) -b html -d $(SPHINXBUILDDIR)/doctrees $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/html
|
$(AM_V_SPHINX)$(SPHINX_BUILD) -b html -d $(SPHINXBUILDDIR)/doctrees $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/html
|
||||||
@@ -66,7 +66,7 @@ epub:
|
|||||||
|
|
||||||
install-epub:
|
install-epub:
|
||||||
$(INSTALL) -d $(DESTDIR)/$(docdir)
|
$(INSTALL) -d $(DESTDIR)/$(docdir)
|
||||||
$(INSTALL_DATA) $(SPHINXBUILDDIR)/epub/KnotDNS.epub $(DESTDIR)/$(docdir)/
|
$(INSTALL_DATA) $(SPHINXBUILDDIR)/epub/*.epub $(DESTDIR)/$(docdir)/
|
||||||
|
|
||||||
if HAVE_XELATEX
|
if HAVE_XELATEX
|
||||||
pdf-local:
|
pdf-local:
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ MANPAGES_RST = \
|
|||||||
dnstap-read.rst \
|
dnstap-read.rst \
|
||||||
filter-aaaa.rst \
|
filter-aaaa.rst \
|
||||||
host.rst \
|
host.rst \
|
||||||
|
index.rst \
|
||||||
mdig.rst \
|
mdig.rst \
|
||||||
named-checkconf.rst \
|
named-checkconf.rst \
|
||||||
named-checkzone.rst \
|
named-checkzone.rst \
|
||||||
@@ -35,7 +36,41 @@ MANPAGES_RST = \
|
|||||||
pkcs11-tokens.rst \
|
pkcs11-tokens.rst \
|
||||||
rndc-confgen.rst \
|
rndc-confgen.rst \
|
||||||
rndc.conf.rst \
|
rndc.conf.rst \
|
||||||
rndc.rst
|
rndc.rst \
|
||||||
|
../../bin/check/named-checkconf.rst \
|
||||||
|
../../bin/check/named-checkzone.rst \
|
||||||
|
../../bin/confgen/ddns-confgen.rst \
|
||||||
|
../../bin/confgen/rndc-confgen.rst \
|
||||||
|
../../bin/delv/delv.rst \
|
||||||
|
../../bin/dig/dig.rst \
|
||||||
|
../../bin/dig/host.rst \
|
||||||
|
../../bin/dig/nslookup.rst \
|
||||||
|
../../bin/dnssec/dnssec-cds.rst \
|
||||||
|
../../bin/dnssec/dnssec-dsfromkey.rst \
|
||||||
|
../../bin/dnssec/dnssec-importkey.rst \
|
||||||
|
../../bin/dnssec/dnssec-keyfromlabel.rst \
|
||||||
|
../../bin/dnssec/dnssec-keygen.rst \
|
||||||
|
../../bin/dnssec/dnssec-revoke.rst \
|
||||||
|
../../bin/dnssec/dnssec-settime.rst \
|
||||||
|
../../bin/dnssec/dnssec-signzone.rst \
|
||||||
|
../../bin/dnssec/dnssec-verify.rst \
|
||||||
|
../../bin/named/named.rst \
|
||||||
|
../../bin/nsupdate/nsupdate.rst \
|
||||||
|
../../bin/pkcs11/pkcs11-destroy.rst \
|
||||||
|
../../bin/pkcs11/pkcs11-keygen.rst \
|
||||||
|
../../bin/pkcs11/pkcs11-list.rst \
|
||||||
|
../../bin/pkcs11/pkcs11-tokens.rst \
|
||||||
|
../../bin/plugins/filter-aaaa.rst \
|
||||||
|
../../bin/rndc/rndc.conf.rst \
|
||||||
|
../../bin/rndc/rndc.rst \
|
||||||
|
../../bin/tools/arpaname.rst \
|
||||||
|
../../bin/tools/dnstap-read.rst \
|
||||||
|
../../bin/tools/mdig.rst \
|
||||||
|
../../bin/tools/named-journalprint.rst \
|
||||||
|
../../bin/tools/named-nzd2nzf.rst \
|
||||||
|
../../bin/tools/named-rrchecker.rst \
|
||||||
|
../../bin/tools/nsec3hash.rst
|
||||||
|
|
||||||
|
|
||||||
man_MANS = \
|
man_MANS = \
|
||||||
arpaname.1 \
|
arpaname.1 \
|
||||||
|
|||||||
@@ -51,7 +51,14 @@ BUILT_SOURCES = \
|
|||||||
managed-keys.grammar.rst \
|
managed-keys.grammar.rst \
|
||||||
trusted-keys.grammar.rst
|
trusted-keys.grammar.rst
|
||||||
|
|
||||||
EXTRA_DIST = $(BUILT_SOURCES)
|
EXTRA_DIST = \
|
||||||
|
$(BUILT_SOURCES) \
|
||||||
|
format-options.pl \
|
||||||
|
rst-grammars.pl \
|
||||||
|
rst-options.pl \
|
||||||
|
rst-zoneopt.pl \
|
||||||
|
sort-options.pl
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
|
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
options: cfg_test
|
options: cfg_test
|
||||||
|
|||||||
@@ -28,3 +28,5 @@ libbind9_la_LIBADD = \
|
|||||||
|
|
||||||
libbind9_la_LDFLAGS = \
|
libbind9_la_LDFLAGS = \
|
||||||
$(libbind9_VERSION_INFO)
|
$(libbind9_VERSION_INFO)
|
||||||
|
|
||||||
|
EXTRA_DIST = api
|
||||||
|
|||||||
@@ -25,7 +25,11 @@ gen_SOURCES = gen.c gen-unix.h
|
|||||||
gen_CPPFLAGS = \
|
gen_CPPFLAGS = \
|
||||||
$(AM_CPPFLAGS)
|
$(AM_CPPFLAGS)
|
||||||
|
|
||||||
EXTRA_DIST = gen-win32.h
|
EXTRA_DIST = \
|
||||||
|
api \
|
||||||
|
dnstap.proto \
|
||||||
|
gen-win32.h \
|
||||||
|
rdata/*
|
||||||
|
|
||||||
include/dns/enumtype.h: gen Makefile
|
include/dns/enumtype.h: gen Makefile
|
||||||
mkdir -p include/dns
|
mkdir -p include/dns
|
||||||
|
|||||||
@@ -109,4 +109,11 @@ rsa_test_CPPFLAGS = \
|
|||||||
|
|
||||||
unit-local: check
|
unit-local: check
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
Kdh.+002+18602.key \
|
||||||
|
Krsa.+005+29235.key \
|
||||||
|
mkraw.pl \
|
||||||
|
testdata \
|
||||||
|
testkeys
|
||||||
|
|
||||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||||
|
|||||||
@@ -29,3 +29,5 @@ libirs_la_LDFLAGS = \
|
|||||||
if HAVE_CMOCKA
|
if HAVE_CMOCKA
|
||||||
SUBDIRS = tests
|
SUBDIRS = tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
EXTRA_DIST = api
|
||||||
|
|||||||
@@ -16,4 +16,6 @@ TESTS = $(check_PROGRAMS)
|
|||||||
|
|
||||||
unit-local: check
|
unit-local: check
|
||||||
|
|
||||||
|
EXTRA_DIST = testdata
|
||||||
|
|
||||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ libisc_la_HEADERS = \
|
|||||||
pthreads/include/isc/mutex.h \
|
pthreads/include/isc/mutex.h \
|
||||||
pthreads/include/isc/once.h \
|
pthreads/include/isc/once.h \
|
||||||
pthreads/include/isc/thread.h \
|
pthreads/include/isc/thread.h \
|
||||||
|
unix/errno2result.h \
|
||||||
unix/include/isc/align.h \
|
unix/include/isc/align.h \
|
||||||
unix/include/isc/dir.h \
|
unix/include/isc/dir.h \
|
||||||
unix/include/isc/netdb.h \
|
unix/include/isc/netdb.h \
|
||||||
@@ -252,3 +253,5 @@ endif HAVE_LIBXML2
|
|||||||
if HAVE_CMOCKA
|
if HAVE_CMOCKA
|
||||||
SUBDIRS = tests
|
SUBDIRS = tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
EXTRA_DIST = api
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ LDADD += \
|
|||||||
$(LIBISC_LIBS)
|
$(LIBISC_LIBS)
|
||||||
|
|
||||||
check_LTLIBRARIES = libisctest.la
|
check_LTLIBRARIES = libisctest.la
|
||||||
libisctest_la_SOURCES = isctest.c isctest.h
|
libisctest_la_SOURCES = \
|
||||||
|
../unix/socket_p.h \
|
||||||
|
isctest.c \
|
||||||
|
isctest.h
|
||||||
|
|
||||||
check_PROGRAMS = \
|
check_PROGRAMS = \
|
||||||
aes_test \
|
aes_test \
|
||||||
@@ -34,6 +37,7 @@ check_PROGRAMS = \
|
|||||||
regex_test \
|
regex_test \
|
||||||
result_test \
|
result_test \
|
||||||
safe_test \
|
safe_test \
|
||||||
|
siphash_test \
|
||||||
sockaddr_test \
|
sockaddr_test \
|
||||||
socket_test \
|
socket_test \
|
||||||
symtab_test \
|
symtab_test \
|
||||||
@@ -66,4 +70,6 @@ random_test_LDADD = \
|
|||||||
|
|
||||||
unit-local: check
|
unit-local: check
|
||||||
|
|
||||||
|
EXTRA_DIST = testdata
|
||||||
|
|
||||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||||
|
|||||||
@@ -40,3 +40,5 @@ libisccc_la_LDFLAGS = \
|
|||||||
if HAVE_CMOCKA
|
if HAVE_CMOCKA
|
||||||
SUBDIRS = tests
|
SUBDIRS = tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
EXTRA_DIST = api
|
||||||
|
|||||||
@@ -37,3 +37,5 @@ libisccfg_la_LDFLAGS = \
|
|||||||
if HAVE_CMOCKA
|
if HAVE_CMOCKA
|
||||||
SUBDIRS = tests
|
SUBDIRS = tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
EXTRA_DIST = api
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ LDADD += \
|
|||||||
$(LIBDNS_LIBS) \
|
$(LIBDNS_LIBS) \
|
||||||
$(LIBISCCFG_LIBS)
|
$(LIBISCCFG_LIBS)
|
||||||
|
|
||||||
check_PROGRAMS = \
|
check_PROGRAMS = \
|
||||||
|
duration_test \
|
||||||
parser_test
|
parser_test
|
||||||
|
|
||||||
TESTS = $(check_PROGRAMS)
|
TESTS = $(check_PROGRAMS)
|
||||||
|
|||||||
@@ -56,3 +56,5 @@ libns_la_LDFLAGS = \
|
|||||||
if HAVE_CMOCKA
|
if HAVE_CMOCKA
|
||||||
SUBDIRS = tests
|
SUBDIRS = tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
EXTRA_DIST = api
|
||||||
|
|||||||
@@ -46,4 +46,6 @@ endif
|
|||||||
|
|
||||||
unit-local: check
|
unit-local: check
|
||||||
|
|
||||||
|
EXTRA_DIST = testdata
|
||||||
|
|
||||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user