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
|
||||
|
||||
.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
|
||||
CLEANFILES = xsl.c
|
||||
|
||||
EXTRA_DIST = bind9.xsl
|
||||
|
||||
xsl.c: bind9.xsl Makefile
|
||||
(echo 'const char xslmsg[] =' && \
|
||||
$(SED) -e 's,\",\\\",g' \
|
||||
@@ -61,6 +63,7 @@ named_SOURCES = \
|
||||
zoneconf.c \
|
||||
unix/dlz_dlopen_driver.c \
|
||||
unix/os.c \
|
||||
include/dlz/dlz_dlopen_driver.h \
|
||||
include/named/builtin.h \
|
||||
include/named/config.h \
|
||||
include/named/control.h \
|
||||
|
||||
@@ -11,3 +11,5 @@ AM_CPPFLAGS += \
|
||||
LDADD = \
|
||||
$(LIBISC_LIBS) \
|
||||
$(LIBDNS_LIBS)
|
||||
|
||||
EXTRA_DIST = prepare-softhsm2.sh
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
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
|
||||
|
||||
AM_CPPFLAGS += \
|
||||
|
||||
@@ -8,6 +8,7 @@ dlzexternal_LTLIBRARIES = dlzexternal.la
|
||||
dlzexternaldir = $(abs_builddir)
|
||||
|
||||
dlzexternal_la_SOURCES = \
|
||||
driver.c
|
||||
driver.c \
|
||||
driver.h
|
||||
|
||||
dlzexternal_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
|
||||
|
||||
@@ -14,6 +14,13 @@ sample_la_SOURCES = \
|
||||
lock.c \
|
||||
log.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
|
||||
|
||||
@@ -56,7 +56,7 @@ AC_DEFINE_UNQUOTED([PACKAGE_CONFIGARGS], ["$bind_CONFIGARGS"], [Either 'defaults
|
||||
AC_DEFINE([PACKAGE_BUILDER], ["make"], [make or Visual Studio])
|
||||
|
||||
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_EXTRA_RECURSIVE_TARGETS([test unit doc])
|
||||
|
||||
|
||||
@@ -7,5 +7,3 @@ endif
|
||||
if HAVE_SPHINX_BUILD
|
||||
SUBDIRS += man arm
|
||||
endif HAVE_SPHINX_BUILD
|
||||
|
||||
EXTRA_DIST = notes/
|
||||
|
||||
@@ -1,49 +1,49 @@
|
||||
include $(top_srcdir)/Makefile.top
|
||||
include $(top_srcdir)/Makefile.docs
|
||||
|
||||
EXTRA_DIST = \
|
||||
conf.py \
|
||||
acl.grammar.rst \
|
||||
advanced.rst \
|
||||
catz.rst \
|
||||
configuration.rst \
|
||||
controls.grammar.rst \
|
||||
delegation-only.zoneopt.rst \
|
||||
dlz.rst \
|
||||
dnssec-keys.grammar.rst \
|
||||
dnssec.rst \
|
||||
dyndb.rst \
|
||||
forward.zoneopt.rst \
|
||||
general.rst \
|
||||
hint.zoneopt.rst \
|
||||
history.rst \
|
||||
in-view.zoneopt.rst \
|
||||
index.rst \
|
||||
introduction.rst \
|
||||
key.grammar.rst \
|
||||
logging-categories.rst \
|
||||
logging.grammar.rst \
|
||||
managed-keys.grammar.rst \
|
||||
managed-keys.rst \
|
||||
manpages.rst \
|
||||
master.zoneopt.rst \
|
||||
masters.grammar.rst \
|
||||
mirror.zoneopt.rst \
|
||||
notes.rst \
|
||||
options.grammar.rst \
|
||||
pkcs11.rst \
|
||||
plugins.rst \
|
||||
redirect.zoneopt.rst \
|
||||
reference.rst \
|
||||
requirements.rst \
|
||||
security.rst \
|
||||
server.grammar.rst \
|
||||
slave.zoneopt.rst \
|
||||
static-stub.zoneopt.rst \
|
||||
statistics-channels.grammar.rst \
|
||||
stub.zoneopt.rst \
|
||||
troubleshooting.rst \
|
||||
trusted-keys.grammar.rst
|
||||
EXTRA_DIST = \
|
||||
conf.py \
|
||||
advanced.rst \
|
||||
catz.rst \
|
||||
configuration.rst \
|
||||
dlz.rst \
|
||||
dnssec.rst \
|
||||
dyndb.rst \
|
||||
general.rst \
|
||||
history.rst \
|
||||
index.rst \
|
||||
introduction.rst \
|
||||
logging-categories.rst \
|
||||
managed-keys.rst \
|
||||
manpages.rst \
|
||||
notes.rst \
|
||||
pkcs11.rst \
|
||||
plugins.rst \
|
||||
reference.rst \
|
||||
requirements.rst \
|
||||
security.rst \
|
||||
troubleshooting.rst \
|
||||
../misc/acl.grammar.rst \
|
||||
../misc/controls.grammar.rst \
|
||||
../misc/delegation-only.zoneopt.rst \
|
||||
../misc/forward.zoneopt.rst \
|
||||
../misc/hint.zoneopt.rst \
|
||||
../misc/in-view.zoneopt.rst \
|
||||
../misc/key.grammar.rst \
|
||||
../misc/logging.grammar.rst \
|
||||
../misc/managed-keys.grammar.rst \
|
||||
../misc/master.zoneopt.rst \
|
||||
../misc/masters.grammar.rst \
|
||||
../misc/mirror.zoneopt.rst \
|
||||
../misc/options.grammar.rst \
|
||||
../misc/redirect.zoneopt.rst \
|
||||
../misc/server.grammar.rst \
|
||||
../misc/slave.zoneopt.rst \
|
||||
../misc/static-stub.zoneopt.rst \
|
||||
../misc/statistics-channels.grammar.rst \
|
||||
../misc/stub.zoneopt.rst \
|
||||
../misc/trusted-keys.grammar.rst \
|
||||
../notes/*.rst
|
||||
|
||||
html-local:
|
||||
$(AM_V_SPHINX)$(SPHINX_BUILD) -b html -d $(SPHINXBUILDDIR)/doctrees $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/html
|
||||
@@ -66,7 +66,7 @@ epub:
|
||||
|
||||
install-epub:
|
||||
$(INSTALL) -d $(DESTDIR)/$(docdir)
|
||||
$(INSTALL_DATA) $(SPHINXBUILDDIR)/epub/KnotDNS.epub $(DESTDIR)/$(docdir)/
|
||||
$(INSTALL_DATA) $(SPHINXBUILDDIR)/epub/*.epub $(DESTDIR)/$(docdir)/
|
||||
|
||||
if HAVE_XELATEX
|
||||
pdf-local:
|
||||
|
||||
@@ -18,6 +18,7 @@ MANPAGES_RST = \
|
||||
dnstap-read.rst \
|
||||
filter-aaaa.rst \
|
||||
host.rst \
|
||||
index.rst \
|
||||
mdig.rst \
|
||||
named-checkconf.rst \
|
||||
named-checkzone.rst \
|
||||
@@ -35,7 +36,41 @@ MANPAGES_RST = \
|
||||
pkcs11-tokens.rst \
|
||||
rndc-confgen.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 = \
|
||||
arpaname.1 \
|
||||
|
||||
@@ -51,7 +51,14 @@ BUILT_SOURCES = \
|
||||
managed-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)
|
||||
|
||||
options: cfg_test
|
||||
|
||||
@@ -28,3 +28,5 @@ libbind9_la_LIBADD = \
|
||||
|
||||
libbind9_la_LDFLAGS = \
|
||||
$(libbind9_VERSION_INFO)
|
||||
|
||||
EXTRA_DIST = api
|
||||
|
||||
@@ -25,7 +25,11 @@ gen_SOURCES = gen.c gen-unix.h
|
||||
gen_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS)
|
||||
|
||||
EXTRA_DIST = gen-win32.h
|
||||
EXTRA_DIST = \
|
||||
api \
|
||||
dnstap.proto \
|
||||
gen-win32.h \
|
||||
rdata/*
|
||||
|
||||
include/dns/enumtype.h: gen Makefile
|
||||
mkdir -p include/dns
|
||||
|
||||
@@ -109,4 +109,11 @@ rsa_test_CPPFLAGS = \
|
||||
|
||||
unit-local: check
|
||||
|
||||
EXTRA_DIST = \
|
||||
Kdh.+002+18602.key \
|
||||
Krsa.+005+29235.key \
|
||||
mkraw.pl \
|
||||
testdata \
|
||||
testkeys
|
||||
|
||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||
|
||||
@@ -29,3 +29,5 @@ libirs_la_LDFLAGS = \
|
||||
if HAVE_CMOCKA
|
||||
SUBDIRS = tests
|
||||
endif
|
||||
|
||||
EXTRA_DIST = api
|
||||
|
||||
@@ -16,4 +16,6 @@ TESTS = $(check_PROGRAMS)
|
||||
|
||||
unit-local: check
|
||||
|
||||
EXTRA_DIST = testdata
|
||||
|
||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||
|
||||
@@ -94,6 +94,7 @@ libisc_la_HEADERS = \
|
||||
pthreads/include/isc/mutex.h \
|
||||
pthreads/include/isc/once.h \
|
||||
pthreads/include/isc/thread.h \
|
||||
unix/errno2result.h \
|
||||
unix/include/isc/align.h \
|
||||
unix/include/isc/dir.h \
|
||||
unix/include/isc/netdb.h \
|
||||
@@ -252,3 +253,5 @@ endif HAVE_LIBXML2
|
||||
if HAVE_CMOCKA
|
||||
SUBDIRS = tests
|
||||
endif
|
||||
|
||||
EXTRA_DIST = api
|
||||
|
||||
@@ -9,7 +9,10 @@ LDADD += \
|
||||
$(LIBISC_LIBS)
|
||||
|
||||
check_LTLIBRARIES = libisctest.la
|
||||
libisctest_la_SOURCES = isctest.c isctest.h
|
||||
libisctest_la_SOURCES = \
|
||||
../unix/socket_p.h \
|
||||
isctest.c \
|
||||
isctest.h
|
||||
|
||||
check_PROGRAMS = \
|
||||
aes_test \
|
||||
@@ -34,6 +37,7 @@ check_PROGRAMS = \
|
||||
regex_test \
|
||||
result_test \
|
||||
safe_test \
|
||||
siphash_test \
|
||||
sockaddr_test \
|
||||
socket_test \
|
||||
symtab_test \
|
||||
@@ -66,4 +70,6 @@ random_test_LDADD = \
|
||||
|
||||
unit-local: check
|
||||
|
||||
EXTRA_DIST = testdata
|
||||
|
||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||
|
||||
@@ -40,3 +40,5 @@ libisccc_la_LDFLAGS = \
|
||||
if HAVE_CMOCKA
|
||||
SUBDIRS = tests
|
||||
endif
|
||||
|
||||
EXTRA_DIST = api
|
||||
|
||||
@@ -37,3 +37,5 @@ libisccfg_la_LDFLAGS = \
|
||||
if HAVE_CMOCKA
|
||||
SUBDIRS = tests
|
||||
endif
|
||||
|
||||
EXTRA_DIST = api
|
||||
|
||||
@@ -11,7 +11,8 @@ LDADD += \
|
||||
$(LIBDNS_LIBS) \
|
||||
$(LIBISCCFG_LIBS)
|
||||
|
||||
check_PROGRAMS = \
|
||||
check_PROGRAMS = \
|
||||
duration_test \
|
||||
parser_test
|
||||
|
||||
TESTS = $(check_PROGRAMS)
|
||||
|
||||
@@ -56,3 +56,5 @@ libns_la_LDFLAGS = \
|
||||
if HAVE_CMOCKA
|
||||
SUBDIRS = tests
|
||||
endif
|
||||
|
||||
EXTRA_DIST = api
|
||||
|
||||
@@ -46,4 +46,6 @@ endif
|
||||
|
||||
unit-local: check
|
||||
|
||||
EXTRA_DIST = testdata
|
||||
|
||||
LOG_COMPILER = $(builddir)/../../unit-test-driver.sh
|
||||
|
||||
Reference in New Issue
Block a user