]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Another patch from Jim Hague:
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 31 Jul 2018 07:27:16 +0000 (07:27 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 31 Jul 2018 07:27:16 +0000 (07:27 +0000)
- Fix 'make depend' to work when build dir is not project root.

git-svn-id: file:///svn/unbound/trunk@4809 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
doc/Changelog

index 6d8e8023bc4c6d58a224478523ac2728e103e59a..3a4675647365185a4178571471928b5bf4682903 100644 (file)
@@ -588,7 +588,7 @@ iana_update:
 DEPEND_TMP=depend1073.tmp
 DEPEND_TMP2=depend1074.tmp
 DEPEND_TARGET=Makefile
-DEPEND_TARGET2=Makefile.in
+DEPEND_TARGET2=$(srcdir)/Makefile.in
 # actions: generate deplines from gcc,
 # then, filter out home/xx, /usr/xx and /opt/xx lines (some cc already do this)
 # then, remove empty " \" lines
@@ -596,7 +596,8 @@ DEPEND_TARGET2=Makefile.in
 # then, remove srcdir from the (generated) parser and lexer.
 # and mention the .lo
 depend:
-       (cd $(srcdir) ; $(CC) $(DEPFLAG) $(CPPFLAGS) $(CFLAGS) @PTHREAD_CFLAGS_ONLY@ $(ALL_SRC) $(COMPAT_SRC)) | \
+       (BUILDDIR=$$PWD; cd $(srcdir) ; $(CC) $(DEPFLAG) $(CPPFLAGS) $(CFLAGS) -I$$BUILDDIR @PTHREAD_CFLAGS_ONLY@ $(ALL_SRC) $(COMPAT_SRC)) | \
+               sed -e 's?'$$PWD'/config.h?config.h?g' | \
                sed -e 's!'$$HOME'[^ ]* !!g' -e 's!'$$HOME'[^ ]*$$!!g' \
                        -e 's!/usr[^ ]* !!g' -e 's!/usr[^ ]*$$!!g' \
                        -e 's!/opt[^ ]* !!g' -e 's!/opt[^ ]*$$!!g' | \
index 19911b433e8c064f2c6b940aa62ec64d5515c4d0..e97d0ebaf84f4cbd22302356cf53dfd8340ccc4a 100644 (file)
@@ -10,8 +10,9 @@
          and implement option in client responses.
        - Correct and expand manual page entries for keepalive and idle timeout.
        - Implement progressive backoff of TCP idle/keepalive timeout.
+       - Fix 'make depend' to work when build dir is not project root.
        - From Wouter: make depend, the dependencies in the patches did not
-         apply cleanly.
+         apply cleanly.  Also remade yacc and lex.
        - Fix mesh.c incompatible pointer pass.
 
 30 July 2018: Wouter