From 8e7564ec57f46377cd9e85c9308af37ee8b10d52 Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 26 Feb 2002 13:25:03 +0000 Subject: [PATCH] add check_DESTDIR and check_RELEASEDIR targets --- distrib/Makefile.inc | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/distrib/Makefile.inc b/distrib/Makefile.inc index ea0f8455f0bc..7e1509614c99 100644 --- a/distrib/Makefile.inc +++ b/distrib/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.2 2002/02/08 02:27:55 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.3 2002/02/26 13:25:03 lukem Exp $ .include "../Makefile.inc" @@ -11,3 +11,24 @@ DISTRIBDIR= ${_SRC_TOP_}/distrib # DISTRIBREV!= sh ${KERNSRCDIR}/conf/osrelease.sh -s DISTRIBVER!= sh ${KERNSRCDIR}/conf/osrelease.sh + +# Helper targets +.if !target(check_DESTDIR) +check_DESTDIR: .PHONY +.if !defined(DESTDIR) + @echo "setenv DESTDIR before doing that!" + @false +.else + @true +.endif +.endif + +.if !target(check_RELEASEDIR) +check_RELEASEDIR: .PHONY +.if !defined(RELEASEDIR) + @echo "setenv RELEASEDIR before doing that!" + @false +.else + @true +.endif +.endif