1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00

Add missing dependencies of $(OUTPUTS) on source makefiles.

Caught by:	make -DNOCLEAN buildworld
This commit is contained in:
Ruslan Ermilov 2004-12-18 17:30:53 +00:00
parent d579f3e4fe
commit 2cf24569af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139020

View File

@ -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