summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2016-10-04 17:34:30 +0200
committerFrancis Dupont <fdupont@isc.org>2016-10-04 17:34:30 +0200
commitf8137a46a5ee9888e84944b924f40cc6d8482666 (patch)
treedfa76e70c1dee76004bb01e1e2e0815caffe0736 /util
parentb3dc725e2e72be0dd77c577431868e4d45ea30e5 (diff)
downloadisc-dhcp-f8137a46a5ee9888e84944b924f40cc6d8482666.tar.gz
Build only required libraries
Diffstat (limited to 'util')
-rw-r--r--util/Makefile.bind.in40
1 files changed, 23 insertions, 17 deletions
diff --git a/util/Makefile.bind.in b/util/Makefile.bind.in
index 47711db9..c19d0ba6 100644
--- a/util/Makefile.bind.in
+++ b/util/Makefile.bind.in
@@ -27,15 +27,17 @@ bindconfig = --without-openssl --without-libxml2 --without-libjson \
@BIND_ATF_TRUE@cleandirs = ./lib ./include /share ./atf
cleanfiles = ./configure.log ./build.log ./install.log
+bindlibs = isc dns isccfg irs
+
@BIND_ATF_FALSE@all: bind1 bind2
@BIND_ATF_TRUE@all: bind1 atf bind2
bind1:
# Extract the source from the tarball, if it hasn't been already.
- @if test -d ${bindsrcdir} ; then \
- echo ${bindsrcdir} already unpacked... ; \
- else \
- gunzip -c bind.tar.gz | tar xf - ; \
+ @if test -d ${bindsrcdir} ; then \
+ echo ${bindsrcdir} already unpacked... ; \
+ else \
+ gunzip -c bind.tar.gz | tar xf - ; \
fi
# Configure the libraries
@@ -55,13 +57,13 @@ bind1:
atf:
# Build and copy the ATF support if not yet installed.
- @if test -d ./atf ; then \
- echo ATF support already installed ; \
- else \
- echo Building ATF support ; \
- (cd ${bindsrcdir}/unit; \
- $(MAKE) atf > ${binddir}/build.log ; \
- cp -rp atf ${binddir}) ; \
+ @if test -d ./atf ; then \
+ echo ATF support already installed ; \
+ else \
+ echo Building ATF support ; \
+ (cd ${bindsrcdir}/unit; \
+ $(MAKE) atf > ${binddir}/build.log ; \
+ cp -rp atf ${binddir}) ; \
fi
bind2:
@@ -71,13 +73,17 @@ bind2:
echo Bind libraries already installed ; \
else \
echo Building BIND libraries - this takes some time. ; \
- (cd ${bindsrcdir}/lib ; \
- echo building in `pwd` ; \
- $(MAKE) >> ${binddir}/build.log) ; \
- \
+ for libdir in ${bindlibs} ; do \
+ (cd ${bindsrcdir}/lib/$$libdir ; \
+ echo Building $$libdir library in `pwd` ; \
+ $(MAKE) >> ${binddir}/build.log) ; \
+ done ; \
+ \
echo Installing BIND libraries to ${binddir}. ; \
- (cd ${bindsrcdir}/lib ; \
- $(MAKE) install > ${binddir}/install.log) ; \
+ for libdir in ${bindlibs} ; do \
+ (cd ${bindsrcdir}/lib/$$libdir ; \
+ $(MAKE) install >> ${binddir}/install.log) ; \
+ done ; \
fi
clean: