From 79e5bb77fcc2fc372723d4cfa7e16a759e3bec38 Mon Sep 17 00:00:00 2001 From: sjg Date: Sun, 15 Feb 2004 19:05:45 +0000 Subject: [PATCH] Use ${.MAKE:S,^./,${.CURDIR}/,} so that when someone does ./make test it works. Note use .CURDIR rather than .OBJDIR since the later _may_ not always be correct (eg. symlink in .CURDIR for make). --- usr.bin/make/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index 1cb9327cdff1..237a410711cc 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2003/08/01 03:55:59 sjg Exp $ +# $NetBSD: Makefile,v 1.31 2004/02/15 19:05:45 sjg Exp $ # @(#)Makefile 5.2 (Berkeley) 12/28/90 CPPFLAGS+= -I${.CURDIR} @@ -33,4 +33,4 @@ COPTS.var.c+= -Wno-cast-qual # A simple unit-test driver to help catch regressions accept test: - cd ${.CURDIR}/unit-tests && ${.MAKE} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} + cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}