]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
configure strips out VPATH. Use ${srcdir} instead so 'make depend' works
authorMark Andrews <marka@isc.org>
Tue, 20 Dec 2011 05:27:04 +0000 (05:27 +0000)
committerMark Andrews <marka@isc.org>
Tue, 20 Dec 2011 05:27:04 +0000 (05:27 +0000)
in lib/export.

make/rules.in

index 61dcedc46abf5e27575a3fc9d66336de2a3b311e..74d8b4e370632b3e392043553e6adefded3867f5 100644 (file)
@@ -13,7 +13,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: rules.in,v 1.64.130.4 2011/02/28 01:18:47 tbox Exp $
+# $Id: rules.in,v 1.64.130.5 2011/12/20 05:27:04 marka Exp $
 
 ###
 ### Common Makefile rules for BIND 9.
@@ -163,20 +163,20 @@ depend:
                        (cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
                fi; \
        done
-       @if [ X"${VPATH}" != X ] ; then \
+       @if [ X"${srcdir}" != X. ] ; then \
                if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
-                       echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
-                       ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
-                       echo ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
-                       ${MKDEP} -vpath ${VPATH} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
+                       echo ${MKDEP} -vpath ${srcdir} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
+                       ${MKDEP} -vpath ${srcdir} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
+                       echo ${MKDEP} -vpath ${srcdir} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
+                       ${MKDEP} -vpath ${srcdir} -ap ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
                        ${DEPENDEXTRA} \
                elif [ X"${SRCS}" != X ] ; then \
-                       echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
-                       ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
+                       echo ${MKDEP} -vpath ${srcdir} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
+                       ${MKDEP} -vpath ${srcdir} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${SRCS}; \
                        ${DEPENDEXTRA} \
                elif [ X"${PSRCS}" != X ] ; then \
-                       echo ${MKDEP} -vpath ${VPATH} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
-                       ${MKDEP} -vpath ${VPATH} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
+                       echo ${MKDEP} -vpath ${srcdir} ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
+                       ${MKDEP} -vpath ${srcdir} -p ${ALL_CPPFLAGS} ${ALL_CFLAGS} ${PSRCS}; \
                        ${DEPENDEXTRA} \
                fi \
        else \