summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordbj <dbj@NetBSD.org>1998-12-06 09:06:45 +0000
committerdbj <dbj@NetBSD.org>1998-12-06 09:06:45 +0000
commit16a09f01ca8e5ae8b7bf2f80dfbafe6ff7ea3cff (patch)
tree92ada427ddd1bf6f3255e3264d34854a9ac16a91
parent76ee97dd88f5c8ec29be1cb8fc1face7b18f2658 (diff)
tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
but is not in the environment.
-rw-r--r--games/hack/Makefile4
-rw-r--r--games/phantasia/Makefile6
2 files changed, 6 insertions, 4 deletions
diff --git a/games/hack/Makefile b/games/hack/Makefile
index 66baa586b05..b29faea0ed1 100644
--- a/games/hack/Makefile
+++ b/games/hack/Makefile
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.28 1998/09/12 19:05:48 wrstuden Exp $
+# $NetBSD: Makefile,v 1.29 1998/12/06 09:06:45 dbj Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
+.include <bsd.own.mk>
+
PROG= hack
CPPFLAGS+=-I.
SRCS+= hack.onames.h
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index 9f7db6fad08..25b344a8a75 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 1998/02/18 22:37:32 jtc Exp $
+# $NetBSD: Makefile,v 1.17 1998/12/06 09:06:46 dbj Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= phantasia
@@ -23,8 +23,8 @@ host_phantglobs.o: ${.CURDIR}/phantglobs.c
setup.o: ${.CURDIR}/setup.c
${HOST_COMPILE.c} ${.CURDIR}/setup.c
-afterinstall:
- ./setup -m ${.CURDIR}/monsters.asc
+afterinstall:
+ DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
chown games:games ${DESTDIR}/var/games/phantasia/*
# Make Phantasia map. Change the map commands reflect your installation.