mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
1. Don't overwrite scorefiles if they already exist.
PR: bin/13068 Submitted by: Dominic Mitchell <Dom.Mitchell@palmerharvey.co.uk> 2. Sprinkle $FreeBSD$ around.
This commit is contained in:
parent
a9405f0edb
commit
0e5a7be513
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54416
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= battlestar
|
||||
SRCS= battlestar.c com1.c com2.c com3.c com4.c com5.c com6.c com7.c \
|
||||
|
@ -11,7 +12,9 @@ HIDEGAME=hidegame
|
|||
#CFLAGS+= -Wall -W
|
||||
|
||||
beforeinstall:
|
||||
.if !exists(${DESTDIR}/var/games/battlestar.log)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/battlestar.log
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= canfield
|
||||
MAN6= canfield.6
|
||||
|
@ -8,8 +9,10 @@ HIDEGAME=hidegame
|
|||
MLINKS= canfield.6 cfscores.6
|
||||
|
||||
beforeinstall:
|
||||
.if !exists(${DESTDIR}/var/games/cfscores)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/cfscores
|
||||
.endif
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= cribbage
|
||||
DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT}
|
||||
|
@ -10,7 +11,9 @@ HIDEGAME=hidegame
|
|||
beforeinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
${.CURDIR}/cribbage.n ${DESTDIR}${SHAREDIR}/games/cribbage.instr
|
||||
.if !exists(${DESTDIR}/var/games/criblog)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/criblog
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= hack
|
||||
SRCS= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
|
||||
|
@ -31,14 +32,16 @@ makedefs: makedefs.o
|
|||
beforeinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
|
||||
${DESTDIR}/var/games/hackdir/perm
|
||||
.if !exists(${DESTDIR}/var/games/hackdir/record)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
|
||||
${DESTDIR}/var/games/hackdir/record
|
||||
.endif
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
|
||||
${DESTDIR}/var/games/hackdir/rumors
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
||||
${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \
|
||||
${DESTDIR}/var/games/hackdir
|
||||
rm -f ${DESTDIR}/var/games/hackdir/bones* \
|
||||
${DESTDIR}/var/games/hackdir/save/*
|
||||
# rm -f ${DESTDIR}/var/games/hackdir/bones* \
|
||||
# ${DESTDIR}/var/games/hackdir/save/*
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 5.12 (Berkeley) 5/30/93
|
||||
# $FreeBSD$
|
||||
|
||||
# EXTRA
|
||||
# Incorporates code to gather additional performance statistics
|
||||
|
@ -65,9 +66,13 @@ beforeinstall:
|
|||
(cd ${.CURDIR}/datfiles; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
-m ${NOBINMODE} larnmaze larnopts larn.help \
|
||||
${DESTDIR}${SHAREDIR}/games/larn)
|
||||
.if !exists(${DESTDIR}/var/games/larn/lscore12.0)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \
|
||||
${DESTDIR}/var/games/larn/lscore12.0
|
||||
.endif
|
||||
.if !exists(${DESTDIR}/var/games/larn/llog12.0)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \
|
||||
${DESTDIR}/var/games/larn/llog12.0
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= robots
|
||||
CFLAGS+=-DMAX_PER_UID=5
|
||||
|
@ -10,7 +11,9 @@ LDADD= -lcurses -ltermcap -lcompat
|
|||
HIDEGAME=hidegame
|
||||
|
||||
beforeinstall:
|
||||
.if !exists(${DESTDIR}/var/games/robots_roll)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/robots_roll
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= rogue
|
||||
CFLAGS+=-DUNIX -fwritable-strings
|
||||
|
@ -11,7 +12,9 @@ HIDEGAME=hidegame
|
|||
MAN6= rogue.6
|
||||
|
||||
beforeinstall:
|
||||
.if !exists(${DESTDIR}/var/games/rogue.scores)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/rogue.scores
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= sail
|
||||
SRCS= main.c pl_main.c pl_1.c pl_2.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c \
|
||||
|
@ -10,7 +11,9 @@ LDADD= -lcurses -ltermcap -lcompat
|
|||
HIDEGAME=hidegame
|
||||
|
||||
beforeinstall:
|
||||
.if !exists(${DESTDIR}/var/games/saillog)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/saillog
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= snake
|
||||
SRCS= snake.c move.c
|
||||
|
@ -9,10 +10,14 @@ HIDEGAME=hidegame
|
|||
MLINKS= snake.6 snscore.6
|
||||
|
||||
beforeinstall:
|
||||
.if !exists(${DESTDIR}/var/games/snakerawscores)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/snakerawscores
|
||||
.endif
|
||||
.if !exists(${DESTDIR}/var/games/snake.log)
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
||||
${DESTDIR}/var/games/snake.log
|
||||
.endif
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in a new issue