tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf

but is not in the environment.
This commit is contained in:
dbj 1998-12-06 09:06:45 +00:00
parent 76ee97dd88
commit 16a09f01ca
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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
@ -24,7 +24,7 @@ setup.o: ${.CURDIR}/setup.c
${HOST_COMPILE.c} ${.CURDIR}/setup.c
afterinstall:
./setup -m ${.CURDIR}/monsters.asc
DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
chown games:games ${DESTDIR}/var/games/phantasia/*
# Make Phantasia map. Change the map commands reflect your installation.