changeset 255:fff49a02f6d5 draft

Stop trying to fudge gmake including the .depend
author Roy Marples <roy@marples.name>
date Mon, 07 Jan 2008 20:47:06 +0000
parents fc6bf106cccb
children 410c3c0fe5ac
files Makefile
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Jan 07 19:13:54 2008 +0000
+++ b/Makefile	Mon Jan 07 20:47:06 2008 +0000
@@ -129,9 +129,7 @@
 # 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 @@
 
 # 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