summaryrefslogtreecommitdiffstats
path: root/phantasia/Makefile
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>1999-08-21 06:30:11 +0000
committersimonb <simonb@NetBSD.org>1999-08-21 06:30:11 +0000
commite6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf (patch)
tree20ba0ec7d8aba753a61f97a21274530a4781d946 /phantasia/Makefile
parentc147cc76859b3b890b863a1d6cacf9e38f87953b (diff)
downloadbsdgames-darwin-e6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf.tar.gz
bsdgames-darwin-e6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf.tar.zst
bsdgames-darwin-e6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf.zip
Don't chown installed files or directories if UNPRIVILEGED is defined.
"make build" should now work as a non-root user (tested on Alpha). mtree spits out lots of warnings during "make distrib-dirs", but these are non-fatal.
Diffstat (limited to 'phantasia/Makefile')
-rw-r--r--phantasia/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/phantasia/Makefile b/phantasia/Makefile
index 25b344a8..1b84a0ca 100644
--- a/phantasia/Makefile
+++ b/phantasia/Makefile
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.17 1998/12/06 09:06:46 dbj Exp $
+# $NetBSD: Makefile,v 1.18 1999/08/21 06:30:11 simonb Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
+.include <bsd.own.mk> # for UNPRIVILEGED
+
PROG= phantasia
SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
@@ -25,7 +27,9 @@ setup.o: ${.CURDIR}/setup.c
afterinstall:
DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
+.if !defined(UNPRIVILEGED)
chown games:games ${DESTDIR}/var/games/phantasia/*
+.endif
# Make Phantasia map. Change the map commands reflect your installation.
# PLOTDEVICE is used for plotting the map. Change as appropriate.