hmm, on Sun, Oct 25, 2009 at 10:16:36PM +0100, frantisek holop said that
> 
> this is not good, make clean in a clean directory
> throws an error :[

almost there, please change the -e test to -L

> Index: bsd.port.mk
> ===================================================================
> RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
> retrieving revision 1.972
> diff -u -r1.972 bsd.port.mk
> --- bsd.port.mk       14 Oct 2009 13:01:03 -0000      1.972
> +++ bsd.port.mk       25 Oct 2009 21:15:04 -0000
> @@ -2436,6 +2436,9 @@
>  .  else
>       @if [ -L ${WRKDIR} ]; then rm -rf `readlink ${WRKDIR}`; fi
>       @rm -rf ${WRKDIR}
> +.    if !empty(WRKDIR_LINKNAME)
> +     @if [ -e ${WRKDIR_LINKNAME} ]; then rm ${WRKDIR_LINKNAME}; fi
> +.    endif
>  .  endif
>  .elif ${_clean:L:Mbuild} && ${SEPARATE_BUILD:L} != "no"
>       @rm -rf ${WRKBUILD} ${_CONFIGURE_COOKIE} ${_BUILD_COOKIE}


-f
-- 
perfection is the road, not the destination.

Reply via email to