OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e3ffd5
)
add a basic .depend target to better catch updates in source files
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 17 Apr 2007 11:38:21 +0000
(11:38 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 17 Apr 2007 11:38:21 +0000
(11:38 -0000)
extra/config/Makefile
patch
|
blob
|
history
diff --git
a/extra/config/Makefile
b/extra/config/Makefile
index
b377d43
..
6bd5bf6
100644
(file)
--- 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),\