From f7e90bca2b094461764e0f4f39bb46b85afc1930 Mon Sep 17 00:00:00 2001 From: apb Date: Thu, 21 Aug 2014 22:00:30 +0000 Subject: Add a .PATH, so you can be in any other directory and run "make -f /path/to/this/Makefile sometest.out" and have it create sometest.out in your current directory. --- usr.bin/make/unit-tests/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/make') diff --git a/usr.bin/make/unit-tests/Makefile b/usr.bin/make/unit-tests/Makefile index 987c7b3546a..aeaa17e8264 100644 --- a/usr.bin/make/unit-tests/Makefile +++ b/usr.bin/make/unit-tests/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2014/08/21 15:37:13 apb Exp $ +# $NetBSD: Makefile,v 1.44 2014/08/21 22:00:30 apb Exp $ # # Unit tests for make(1) # The main targets are: @@ -16,6 +16,7 @@ .MAIN: all UNIT_TESTS:= ${.PARSEDIR} +.PATH: ${UNIT_TESTS} # Each test is in a sub-makefile. # Keep the list sorted. -- cgit