From a93ea220fcb3e34cdfdcd4d7a5d391e0b2b4f2ba Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 1 Aug 2003 17:03:41 +0000 Subject: Rework how dependency generation is performed: * DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204. * To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx * If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES * Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS} * Deprecate the (short lived) DEPENDSRCS Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries. Tested with "make -j 8 distribution" and "make distribution". --- gnu/usr.bin/binutils/ld/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/usr.bin/binutils') diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 08c552704a7..41ec69fe914 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2003/07/28 15:25:04 lukem Exp $ +# $NetBSD: Makefile,v 1.13 2003/08/01 17:03:44 lukem Exp $ .include @@ -46,7 +46,6 @@ stringify.sed: ${G_STRINGIFY} .include ".depend.${f}" .endif -${DEPENDSRCS}: .depend.${f} .depend.${f}: ${f}.sh (srcdir=${DIST}/ld . ${>:M*.sh} && \ if [ x"$$TEMPLATE_NAME" != x ]; then \ @@ -62,6 +61,7 @@ ${DEPENDSRCS}: .depend.${f} echo "e${f}.c: $$temp_name $$script" \ ) >$@ +DPSRCS+= .depend.${f} e${f}.c CLEANFILES+= .depend.${f} e${f}.c e${f}.c: ${DIST}/ld/genscripts.sh ${.CURDIR}/Makefile stringify.sed -- cgit