summaryrefslogtreecommitdiff
path: root/extra/config
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-17 11:38:21 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-17 11:38:21 +0000
commitaccbb884e76216fbb244800d21d4eecadc24dbd1 (patch)
treececec6f5852a465953d53d340cb314c1e5128e1c /extra/config
parent1e3ffd5c791a08c305cc931ee3f9320ed78c2ef6 (diff)
add a basic .depend target to better catch updates in source files
Diffstat (limited to 'extra/config')
-rw-r--r--extra/config/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/extra/config/Makefile b/extra/config/Makefile
index b377d43ef..6bd5bf65d 100644
--- a/extra/config/Makefile
+++ b/extra/config/Makefile
@@ -7,6 +7,10 @@ include $(top_builddir)Rules.mak
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),\