summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-01 08:31:48 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-01 08:31:48 +0000
commiteb80540671500ea514a22533b208b4dd01deeb43 (patch)
tree023e370c138c8846bf9119f8a903cfd5cc3db3cf /share
parent76a444c734664fceb5927fd1fc89c3e259db0a8e (diff)
like src, warn if base obj dir does not exist.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.xorg.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/share/mk/bsd.xorg.mk b/share/mk/bsd.xorg.mk
index 03d433aff..e67af87e8 100644
--- a/share/mk/bsd.xorg.mk
+++ b/share/mk/bsd.xorg.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.xorg.mk,v 1.19 2007/03/31 20:25:53 matthieu Exp $ -*- makefile -*-
+# $OpenBSD: bsd.xorg.mk,v 1.20 2007/05/01 08:31:47 espie Exp $ -*- makefile -*-
#
# Copyright © 2006 Matthieu Herrb
#
@@ -186,10 +186,14 @@ _xenocara_obj! _SUBDIRUSE
if test -e ${__objdir}; then rm -rf ${__objdir}; fi; \
ln -sf $$dest ${__objdir}; \
fi; \
- if test -d ${__xobjdir} -a ! -d $$dest; then \
- mkdir -p $$dest; \
+ if test -d ${__xobjdir}; then \
+ test -d $$dest || mkdir -p $$dest; \
else \
- true; \
+ if test -e ${__xobjdir}; then \
+ echo "${__xobjdir} is not a directory"; \
+ else \
+ echo "${__xobjdir} does not exist"; \
+ fi; \
fi; \
else \
dest=$$here/${__objdir}; \