From: Stefan Fritsch Date: Sun, 23 Dec 2012 09:10:20 +0000 (+0000) Subject: GNU make somtimes has problems determining that $(builddir)/test_char.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d17299cfd654db46ad1f107040c505205c4fe37a;p=thirdparty%2Fapache%2Fhttpd.git GNU make somtimes has problems determining that $(builddir)/test_char.h and test_char.h are actually the same files. Fix 'make depends' to only generate the latter. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425447 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/rules.mk.in b/build/rules.mk.in index a1804fa9c5c..283b515d258 100644 --- a/build/rules.mk.in +++ b/build/rules.mk.in @@ -148,7 +148,8 @@ local-depend: x-local-depend rm -f .deps; \ list='$(srcdir)/*.c'; \ for i in $$list; do \ - $(MKDEP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) $$i | sed 's/\.o:/.lo:/' >> .deps; \ + $(MKDEP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) $$i | \ + sed 's/\.o:/.lo:/; s, $(builddir)/, ,' >> .deps; \ done; \ sed 's/\.lo:/.slo:/' < .deps > .deps.$$; \ cat .deps.$$ >> .deps; \