From eeb2dbc8d87fc13f9b937f94fcc499f662567fee Mon Sep 17 00:00:00 2001 From: billf Date: Fri, 10 Dec 1999 21:13:42 +0000 Subject: 1. Don't overwrite scorefiles if they already exist. PR: bin/13068 Submitted by: Dominic Mitchell 2. Sprinkle $FreeBSD$ around. --- games/phantasia/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'games/phantasia/Makefile') diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile index db32133..8478020 100644 --- a/games/phantasia/Makefile +++ b/games/phantasia/Makefile @@ -1,4 +1,5 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 +# $FreeBSD$ PROG= phantasia SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c @@ -24,8 +25,12 @@ setup: cross-phantglobs.o setup.o ${LIBM} ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC:M*.o} -lm beforeinstall: +.for file in ${DATAFILES} +.if !exists(${DESTDIR}/var/games/phantasia/${file}) ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \ - ${DATAFILES} ${DESTDIR}/var/games/phantasia + ${file} ${DESTDIR}/var/games/phantasia +.endif +.endfor # Make Phantasia map. Change the map commands reflect your installation. # PLOTDEVICE is used for plotting the map. Change as appropriate. -- cgit v1.1