mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
add DESTDIR support
This commit is contained in:
@@ -60,9 +60,9 @@ clean distclean::
|
||||
rm -f ${TARGETS}
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${sbindir} ]; then \
|
||||
mkdir ${sbindir}; \
|
||||
if [ ! -d ${DESTDIR}${sbindir} ]; then \
|
||||
mkdir ${DESTDIR}${sbindir}; \
|
||||
fi
|
||||
|
||||
install:: named installdirs
|
||||
${LIBTOOL} ${INSTALL_PROGRAM} named ${sbindir}
|
||||
${LIBTOOL} ${INSTALL_PROGRAM} named ${DESTDIR}${sbindir}
|
||||
|
@@ -170,12 +170,12 @@ timestamp: libdns.@A@
|
||||
touch timestamp
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${libdir} ]; then \
|
||||
mkdir ${libdir} ; \
|
||||
if [ ! -d ${DESTDIR}${libdir} ]; then \
|
||||
mkdir ${DESTDIR}${libdir} ; \
|
||||
fi
|
||||
|
||||
install:: timestamp installdirs
|
||||
${LIBTOOL} ${INSTALL_DATA} libdns.@A@ ${libdir}
|
||||
${LIBTOOL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
|
||||
|
||||
clean distclean::
|
||||
rm -f libdns.@A@ timestamp
|
||||
|
@@ -41,17 +41,17 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/dns ]; then \
|
||||
mkdir ${includedir}/dns ; \
|
||||
if [ ! -d ${DESTDIR}${includedir}/dns ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/dns ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${includedir}/dns ; \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dns ; \
|
||||
done
|
||||
for i in ${GENHEADERS}; do \
|
||||
${INSTALL_DATA} $$i ${includedir}/dns ; \
|
||||
${INSTALL_DATA} $$i ${DESTDIR}${includedir}/dns ; \
|
||||
done
|
||||
|
@@ -27,14 +27,14 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/dst ]; then \
|
||||
mkdir ${includedir}/dst ; \
|
||||
if [ ! -d ${DESTDIR}${includedir}/dst ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/dst ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${includedir}/dst ; \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/dst ; \
|
||||
done
|
||||
|
@@ -92,12 +92,12 @@ timestamp: libisc.@A@
|
||||
touch timestamp
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${libdir} ]; then \
|
||||
mkdir ${libdir}; \
|
||||
if [ ! -d ${DESTDIR}${libdir} ]; then \
|
||||
mkdir ${DESTDIR}${libdir}; \
|
||||
fi
|
||||
|
||||
install:: timestamp installdirs
|
||||
${LIBTOOL} ${INSTALL_DATA} libisc.@A@ ${libdir}
|
||||
${LIBTOOL} ${INSTALL_DATA} libisc.@A@ ${DESTDIR}${libdir}
|
||||
|
||||
clean distclean::
|
||||
rm -f libisc.@A@ libisc.la timestamp
|
||||
|
@@ -37,18 +37,18 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/isc ]; then \
|
||||
mkdir ${includedir}/isc ; \
|
||||
if [ ! -d ${DESTDIR}${includedir}/isc ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/isc ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${includedir}/isc ; \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isc ; \
|
||||
done
|
||||
${INSTALL_DATA} platform.h ${includedir}/isc
|
||||
${INSTALL_DATA} platform.h ${DESTDIR}${includedir}/isc
|
||||
|
||||
distclean::
|
||||
rm -f platform.h
|
||||
|
@@ -27,14 +27,14 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/isc ]; then \
|
||||
mkdir ${includedir}/isc ; \
|
||||
if [ ! -d ${DESTDIR}${includedir}/isc ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/isc ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} $(srcdir)/$$i ${includedir}/isc ; \
|
||||
${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/isc ; \
|
||||
done
|
||||
|
@@ -27,14 +27,14 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/isc ]; then \
|
||||
mkdir ${includedir}/isc ; \
|
||||
if [ ! -d ${DESTDIR)${includedir}/isc ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/isc ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} $(srcdir)/$$i ${includedir}/isc ; \
|
||||
${INSTALL_DATA} $(srcdir)/$$i ${DESTDIR}${includedir}/isc ; \
|
||||
done
|
||||
|
@@ -67,12 +67,12 @@ timestamp: liblwres.@A@
|
||||
touch timestamp
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${libdir} ]; then \
|
||||
mkdir ${libdir}; \
|
||||
if [ ! -d ${DESTDIR}${libdir} ]; then \
|
||||
mkdir ${DESTDIR}${libdir}; \
|
||||
fi
|
||||
|
||||
install:: timestamp installdirs
|
||||
${LIBTOOL} ${INSTALL_DATA} liblwres.@A@ ${libdir}
|
||||
${LIBTOOL} ${INSTALL_DATA} liblwres.@A@ ${DESTDIR}${libdir}
|
||||
|
||||
clean distclean::
|
||||
rm -f liblwres.@A@ liblwres.la timestamp
|
||||
|
@@ -29,16 +29,16 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/lwres ]; then \
|
||||
mkdir ${includedir}/lwres ; \
|
||||
if [ ! -d ${DESTDIR}${includedir}/lwres ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/lwres ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${includedir}/lwres ; \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/lwres ; \
|
||||
done
|
||||
|
||||
distclean::
|
||||
|
@@ -69,12 +69,12 @@ timestamp: libomapi.@A@
|
||||
touch timestamp
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${libdir} ]; then \
|
||||
mkdir ${libdir}; \
|
||||
if [ ! -d ${DESTDIR}${libdir} ]; then \
|
||||
mkdir ${DESTDIR}${libdir}; \
|
||||
fi
|
||||
|
||||
install:: timestamp installdirs
|
||||
${LIBTOOL} ${INSTALL_DATA} libomapi.@A@ ${libdir}
|
||||
${LIBTOOL} ${INSTALL_DATA} libomapi.@A@ ${DESTDIR}${libdir}
|
||||
|
||||
clean distclean::
|
||||
rm -f libomapi.@A@ libomapi.la timestamp
|
||||
|
@@ -27,14 +27,14 @@ TARGETS =
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
installdirs:
|
||||
if [ ! -d ${includedir} ]; then \
|
||||
mkdir ${includedir} ; \
|
||||
if [ ! -d ${DESTDIR}${includedir} ]; then \
|
||||
mkdir ${DESTDIR}${includedir} ; \
|
||||
fi
|
||||
if [ ! -d ${includedir}/omapi ]; then \
|
||||
mkdir ${includedir}/omapi ; \
|
||||
if [ ! -d ${DESTDIR}${includedir}/omapi ]; then \
|
||||
mkdir ${DESTDIR}${includedir}/omapi ; \
|
||||
fi
|
||||
|
||||
install:: installdirs
|
||||
for i in ${HEADERS}; do \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${includedir}/omapi ; \
|
||||
${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/omapi ; \
|
||||
done
|
||||
|
@@ -30,6 +30,8 @@ sbindir = @sbindir@
|
||||
includedir = @includedir@
|
||||
libdir = @libdir@
|
||||
|
||||
DESTDIR =
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
top_builddir = @BIND9_TOP_BUILDDIR@
|
||||
|
Reference in New Issue
Block a user