diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-06 15:19:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-06 15:19:52 +0000 |
commit | 515881c6e1daeea5c690f769992e6069b8fb7212 (patch) | |
tree | 88c9b2247ae257c12430bf664caffa46d5e053e7 | |
parent | 674b08a6b8ce0b3b1c26d9f326fb2e59bd8dc1e8 (diff) | |
download | busybox-515881c6e1daeea5c690f769992e6069b8fb7212.tar.gz |
Fix it so build dependancies actually work and do something useful
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -46,6 +46,7 @@ all: busybox busybox.links doc # In this section, we need .config -include .config.cmd include $(patsubst %,%/Makefile.in, $(DIRS)) +-include $(TOPDIR).depend busybox: .depend include/config.h $(libraries-y) $(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group @@ -138,9 +139,9 @@ scripts/split-include: scripts/split-include.c mkdir -p include/config; $(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c scripts/mkdep -I include -- \ - `find . -name \*.c -print` >> .depend; + `find -name \*.c -print | sed -e "s,^./,,"` >> .depend; scripts/mkdep -I include -- \ - `find . -name \*.h -print` >> .hdepend; + `find -name \*.h -print | sed -e "s,^./,,"` >> .hdepend; depend dep: include/config.h .depend |