summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-01-31 22:34:41 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-01-31 22:34:41 +0000
commit815302e2290932fd3b6eea8b99abc205e7326549 (patch)
tree3c0f32e38f73c9a60ac57952e015460dcfc61b18 /Makefile
parentf03bac334093c5e0ed316ad35aca89c75dd4fab1 (diff)
Merge the two xenocara mtree specs into a unique one, rooted at /
ok todd@
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index a6ca71499..7e1cfe9f4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.24 2008/01/05 20:22:38 espie Exp $
+# $OpenBSD: Makefile,v 1.25 2008/01/31 22:34:40 matthieu Exp $
.include <bsd.own.mk>
LOCALAPPD=/usr/local/lib/X11/app-defaults
@@ -110,16 +110,12 @@ dist:
distrib-dirs:
- if [ ! -d ${DESTDIR}${X11BASE}/. ]; then \
- ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11BASE}/; \
- fi
- mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist \
- -p ${DESTDIR}${X11BASE}/ -U
- if [ ! -d ${DESTDIR}${X11ETC}/. ]; then \
- ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11ETC}/; \
- fi
- mtree -qdef ${.CURDIR}/etc/mtree/BSD.etc-x11.dist \
- -p ${DESTDIR}${X11ETC}/ -U
+.if defined(DESTDIR) && ${DESTDIR} != ""
+ mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist -p ${DESTDIR} -U
+.else
+ mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist -p / -U
+.endif
+
.PHONY: all build beforeinstall install afterinstall release clean cleandir \
dist distrib-dirs fix-appd