From: Eric Andersen Date: Tue, 6 Apr 2004 15:19:52 +0000 (-0000) Subject: Fix it so build dependancies actually work and do something useful X-Git-Tag: 1_00_pre9~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=515881c6e1daeea5c690f769992e6069b8fb7212;p=platform%2Fupstream%2Fbusybox.git Fix it so build dependancies actually work and do something useful --- diff --git a/Makefile b/Makefile index 7a83370..ea7448d 100644 --- a/Makefile +++ b/Makefile @@ -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