From 2cf24569afc386fcdeed044dffa07e6fe70e9af0 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sat, 18 Dec 2004 17:30:53 +0000 Subject: [PATCH] Add missing dependencies of $(OUTPUTS) on source makefiles. Caught by: make -DNOCLEAN buildworld --- rescue/rescue/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index a75edc2e5d3c..5a6629526290 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -220,6 +220,11 @@ CLEANFILES+= $(CONF) *.o *.lo *.c *.mk *.cache *.a *.h # except for those that get suppressed. .for D in $(CRUNCH_SRCDIRS) .for P in $(CRUNCH_PROGS_$(D)) +.ifdef CRUNCH_SRCDIR_${P} +$(OUTPUTS): $(CRUNCH_SRCDIR_${P})/Makefile +.else +$(OUTPUTS): $(.CURDIR)/../../$(D)/$(P)/Makefile +.endif .ifndef CRUNCH_SUPPRESS_LINK_${P} LINKS+= $(BINDIR)/$(PROG) $(BINDIR)/$(P) .endif @@ -262,7 +267,7 @@ $(CONF): Makefile .ORDER: $(OUTPUTS) objs $(OUTPUTS): $(CONF) - MAKEFLAGS= MAKEOBJDIRPREFIX=${CRUNCHOBJS} crunchgen -q -m $(OUTMK) \ + MAKEFLAGS= MAKEOBJDIRPREFIX=${CRUNCHOBJS} crunchgen -fq -m $(OUTMK) \ -c $(OUTC) $(CONF) $(PROG): $(OUTPUTS) objs