diff options
author | ru <ru@FreeBSD.org> | 2005-04-22 17:36:25 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-04-22 17:36:25 +0000 |
commit | 170069a65004b01982e24e3cd92af4ea8a1f1251 (patch) | |
tree | 3076d426e54f0306f1b5a0b83103611bfd24447b /sys/conf/kern.post.mk | |
parent | c5baa061e7e1aee4739ed1fa82f370c66c137c2f (diff) | |
download | FreeBSD-src-170069a65004b01982e24e3cd92af4ea8a1f1251.zip FreeBSD-src-170069a65004b01982e24e3cd92af4ea8a1f1251.tar.gz |
Fix "make depend" to not redundantly rebuild the .depend file.
Reviewed by: bde (I think so)
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r-- | sys/conf/kern.post.mk | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 0df5a5e..8dd3c0d 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -138,17 +138,12 @@ genassym.o: $S/$M/$M/genassym.c ${SYSTEM_OBJS} genassym.o vers.o: opt_global.h -kernel-depend: - rm -f .olddep - if [ -f .depend ]; then mv .depend .olddep; fi - ${MAKE} _kernel-depend - +kernel-depend: .depend # The argument list can be very long, so use make -V and xargs to # pass it to mkdep. -_kernel-depend: assym.s vnode_if.h ${BEFORE_DEPEND} ${CFILES} \ +.depend: assym.s vnode_if.h ${BEFORE_DEPEND} ${CFILES} \ ${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} \ ${MFILES:T:S/.m$/.h/} - if [ -f .olddep ]; then mv .olddep .depend; fi rm -f .newdep ${MAKE} -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | \ MKDEP_CPP="${CC} -E" CC="${CC}" xargs mkdep -a -f .newdep ${CFLAGS} |