svn commit: trunk/uClibc/extra/config
vapier at uclibc.org
vapier at uclibc.org
Tue Apr 17 11:38:22 UTC 2007
Author: vapier
Date: 2007-04-17 04:38:21 -0700 (Tue, 17 Apr 2007)
New Revision: 18465
Log:
add a basic .depend target to better catch updates in source files
Modified:
trunk/uClibc/extra/config/Makefile
Changeset:
Modified: trunk/uClibc/extra/config/Makefile
===================================================================
--- trunk/uClibc/extra/config/Makefile 2007-04-16 23:23:33 UTC (rev 18464)
+++ trunk/uClibc/extra/config/Makefile 2007-04-17 11:38:21 UTC (rev 18465)
@@ -7,6 +7,10 @@
include Makefile.kconfig
+-include .depend
+.depend: $(wildcard *.h *.c)
+ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > .depend 2>/dev/null || :
+
__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
host-cmulti := $(foreach m,$(__hostprogs),\
More information about the uClibc-cvs
mailing list