Source-Changes-HG archive

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

[src/trunk]: src/share/mk If using MAKEOBJDIRPREFIX use the same checks as th...



details:   https://anonhg.NetBSD.org/src/rev/5dcea8523c70
branches:  trunk
changeset: 518276:5dcea8523c70
user:      jmc <jmc%NetBSD.org@localhost>
date:      Tue Nov 27 05:42:24 2001 +0000

description:
If using MAKEOBJDIRPREFIX use the same checks as the symlink logic does below.

i.e. if the root of the object tree doesn't exist then complain and exit.

This makes both sections consistant to each other (MAKEOBJDIR specifies an
exact directory so there's no root per se to check so nothing can really be
done there).

diffstat:

 share/mk/bsd.obj.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 669bb06b0ddd -r 5dcea8523c70 share/mk/bsd.obj.mk
--- a/share/mk/bsd.obj.mk       Tue Nov 27 05:39:03 2001 +0000
+++ b/share/mk/bsd.obj.mk       Tue Nov 27 05:42:24 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.obj.mk,v 1.36 2001/11/20 17:12:22 tv Exp $
+#      $NetBSD: bsd.obj.mk,v 1.37 2001/11/27 05:42:24 jmc Exp $
 
 .if !target(__initialized_obj__)
 __initialized_obj__:
@@ -20,6 +20,12 @@
 # If that fails - we do a mkdir to get the appropriate error message
 # before bailing out.
 obj:
+.if defined(MAKEOBJDIRPREFIX)
+       @if [ ! -d ${MAKEOBJDIRPREFIX} ]; then \
+               echo "MAKEOBJDIRPREFIX ${MAKEOBJDIRPREFIX} does not exist, bailing..."; \
+               exit 1; \
+       fi; 
+.endif
        @if [ ! -d ${__objdir} ]; then \
                mkdir -p ${__objdir}; \
                if [ ! -d ${__objdir} ]; then \



Home | Main Index | Thread Index | Old Index