Source-Changes-HG archive

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

[src/trunk]: src fix DESTDIR checks if !defined(DESTDIR)



details:   https://anonhg.NetBSD.org/src/rev/71641d016ba7
branches:  trunk
changeset: 540840:71641d016ba7
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Dec 26 12:01:48 2002 +0000

description:
fix DESTDIR checks if !defined(DESTDIR)

diffstat:

 Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 058be4035fe4 -r 71641d016ba7 Makefile
--- a/Makefile  Thu Dec 26 12:01:42 2002 +0000
+++ b/Makefile  Thu Dec 26 12:01:48 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.193 2002/12/21 16:43:33 lukem Exp $
+#      $NetBSD: Makefile,v 1.194 2002/12/26 12:01:48 lukem Exp $
 
 #
 # This is the top-level makefile for building NetBSD. For an outline of
@@ -184,7 +184,8 @@
 #
 
 distribution buildworld:
-.if make(buildworld) && (${DESTDIR} == "" || ${DESTDIR} == "/")
+.if make(buildworld) && \
+    (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
        @echo "Won't make ${.TARGET} with DESTDIR=/"
        @false
 .endif
@@ -206,7 +207,7 @@
 HOST_UNAME_M!= uname -m
 
 installworld:
-.if (${DESTDIR} == "" || ${DESTDIR} == "/")
+.if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
        @echo "Can't make ${.TARGET} to DESTDIR=/"
        @false
 .endif



Home | Main Index | Thread Index | Old Index