NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/45396: make clean fails in src/lib/libarch for mips build



The following reply was made to PR toolchain/45396; it has been noted by GNATS.

From: Alan Barrett <apb%cequrux.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/45396: make clean fails in src/lib/libarch for mips
 build
Date: Fri, 23 Sep 2011 18:10:36 +0200

 On Fri, 23 Sep 2011, Izumi Tsutsui wrote:
 >/work/src/lib/libarch
 >% ../../obj.pmax/tooldir.NetBSD-5.99.55-i386/bin/nbmake-pmax clean
 >#   clean CLEANFILES
 >(cd /work/src/lib/libarch && rm -f  )
 >Failed to remove files from /work/src/lib/libarch:
 >.
 
 Please try this patch, which will print the value of ${CLEANFILES}.  I
 guess that it contains a space instead of being empty, and I guess that
 can happen if you do this:
 
 EMPTY =
 CLEANFILES = ${EMPTY}
 CLEANFILES += ${EMPTY}
 
 --apb (Alan Barrett)
 
 Index: bsd.clean.mk
 ===================================================================
 --- bsd.clean.mk       10 Sep 2011 19:25:10 -0000      1.2
 +++ bsd.clean.mk       23 Sep 2011 16:03:34 -0000
 @@ -42,7 +42,7 @@ __docleandir:        .PHONY .MADE __cleanuse CL
   #
   __cleanuse: .USE
        ${"${.ALLSRC:@v@${${v}}@}" == "":?@true:${_MKMSG} \
 -              "clean" ${.ALLSRC} }
 +              "clean" ${.ALLSRC} \"${.ALLSRC:@v@${${v}}@:Q}\" }
   .for _d in ${"${.OBJDIR}" == "${.CURDIR}" \
                :? ${.OBJDIR} \
                :  ${.OBJDIR} ${.CURDIR} }
 


Home | Main Index | Thread Index | Old Index