From e73a95c8c7b8cb7eb66a5a2b8b7b1d0c4dd26b07 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 23 Dec 2004 10:13:17 +0000 Subject: [PATCH] Make "===> " prefixes look sane. --- rescue/rescue/Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index ba942a7ceed1..fe685acdf120 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -256,7 +256,10 @@ $(CONF): Makefile echo special $(P) srcdir $(.CURDIR)/../../$(D)/$(P) >>$(.TARGET) .endif .ifdef CRUNCH_BUILDOPTS_${P} - echo special $(P) buildopts $(CRUNCH_BUILDOPTS_${P}) >>$(.TARGET) + echo special $(P) buildopts DIRPRFX=${DIRPRFX}${P}/ \ + $(CRUNCH_BUILDOPTS_${P}) >>$(.TARGET) +.else + echo special $(P) buildopts DIRPRFX=${DIRPRFX}${P}/ >>$(.TARGET) .endif .for A in $(CRUNCH_ALIAS_$(P)) echo ln $(P) $(A) >>$(.TARGET) @@ -281,7 +284,7 @@ objs: $(OUTMK) build-tools: .for _tool in bin/csh bin/sh cd $(.CURDIR)/../../${_tool}; \ - MAKEOBJDIRPREFIX=${CRUNCHOBJS} ${MAKE} DIRPRFX=rescue/${_tool} build-tools + MAKEOBJDIRPREFIX=${CRUNCHOBJS} ${MAKE} build-tools .endfor # Use a separate build tree to hold files compiled for this crunchgen binary @@ -293,10 +296,12 @@ cleandepend cleandir obj objlink: .for P in $(CRUNCH_PROGS_$(D)) .ifdef CRUNCH_SRCDIR_${P} cd ${CRUNCH_SRCDIR_$(P)} && \ - MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} ${.TARGET} + MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} \ + DIRPRFX=${DIRPRFX}${P}/ ${.TARGET} .else cd $(.CURDIR)/../../${D}/${P} && \ - MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} ${.TARGET} + MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} \ + DIRPRFX=${DIRPRFX}${P}/ ${.TARGET} .endif .endfor .endfor @@ -310,10 +315,12 @@ clean: .for P in $(CRUNCH_PROGS_$(D)) .ifdef CRUNCH_SRCDIR_${P} cd ${CRUNCH_SRCDIR_$(P)} && \ - MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} ${.TARGET} + MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} \ + DIRPRFX=${DIRPRFX}${P}/ ${.TARGET} .else cd $(.CURDIR)/../../${D}/${P} && \ - MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} ${.TARGET} + MAKEOBJDIRPREFIX=${CANONICALOBJDIR} ${MAKE} \ + DIRPRFX=${DIRPRFX}${P}/ ${.TARGET} .endif .endfor .endfor