From: Roy Marples Date: Mon, 7 Jan 2008 20:47:06 +0000 (+0000) Subject: Stop trying to fudge gmake including the .depend X-Git-Tag: v3.2.3~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=876bd5f9ed6ddd02e1b4811a5aea30932ab9d70d;p=thirdparty%2Fdhcpcd.git Stop trying to fudge gmake including the .depend --- diff --git a/Makefile b/Makefile index 0bc0f61e..29beac13 100644 --- a/Makefile +++ b/Makefile @@ -129,9 +129,7 @@ man: $(MAN_TARGETS) # We always need to have a .depend file as not all make implentations can work # with each others way of optionally including a file clean: - echo > .depend - touch -r Makefile .depend - rm -f $(TARGET) $(dhcpcd_H) *.o *~ *.core *.bz2 + rm -f $(TARGET) $(dhcpcd_H) *.o *~ *.core *.bz2 .depend install: $(TARGET) $(INSTALL) -m 0755 -d $(SBINDIR) @@ -150,7 +148,6 @@ dist: # Sucky, but I cannot find a way of optional including the .depend file # that works for all make implementations :/ -include .depend _DEPS != ls *.c *.h .depend: $(dhcpcd_H) $(_DEPS)$(wildcard *.c *.h) $(CC) $(CPPFLAGS) -MM *.c > .depend