summaryrefslogtreecommitdiffstats
path: root/games/phantasia/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-01-16 09:43:47 +0000
committerbde <bde@FreeBSD.org>1998-01-16 09:43:47 +0000
commita610e87ce4224939eaf883d1d31db29c31318390 (patch)
tree866b9979e07467d70903e7f2a1669a36bc99a86d /games/phantasia/Makefile
parent92f63c1a9a959a16274aba9d9dd997c496c636b7 (diff)
downloadFreeBSD-src-a610e87ce4224939eaf883d1d31db29c31318390.zip
FreeBSD-src-a610e87ce4224939eaf883d1d31db29c31318390.tar.gz
Fixed long lines in install rule. Fixed other bogons while I was here:
- removed vestigal rule for a Lite1 `.0' manpage. - don't duplicate defaults in the `all' dependencies. - removed bogus dependency of `setup' on monsters.asc. - compile `setup' with the usual CFLAGS. - create monster files at build time, not at install time. - don't be so repetitive in the install rule. - fixed too-global replacement of `install' by ${INSTALL}. Long lines made disgustingly longer by: previous commit.
Diffstat (limited to 'games/phantasia/Makefile')
-rw-r--r--games/phantasia/Makefile31
1 files changed, 12 insertions, 19 deletions
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index 94b5196..3d80ab8 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -4,35 +4,28 @@ PROG= phantasia
SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
DPADD= ${LIBM} ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT}
LDADD= -lm -lcurses -ltermcap -lcompat
+DATAFILES=characs gold lastdead mess monsters motd scoreboard void
HIDEGAME=hidegame
MAN6= phantasia.6
-CLEANFILES+=map setup setup.o
-CLEANFILES+= characs gold lastdead mess monsters motd scoreboard void
+CLEANFILES=${DATAFILES} map setup setup.o stamp.setuprun
-all: setup phantasia ${MAN6}
+all: stamp.setuprun
-setup: phantglobs.o setup.o monsters.asc ${LIBM}
- ${CC} phantglobs.o setup.o -o ${.TARGET} -lm
+stamp.setuprun: monsters.asc setup
+ ./setup -m ${.CURDIR}/monsters.asc
+ touch ${.TARGET}
+
+setup: phantglobs.o setup.o ${LIBM}
+ ${CC} ${CFLAGS} phantglobs.o setup.o -o ${.TARGET} -lm
beforeinstall:
- ./setup -m ${.CURDIR}/monsters.asc
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} gold ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} lastdead ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} mess ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} monsters ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} motd ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} characs ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} scoreboard ${DESTDIR}/var/games/phantasia
- ${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} void ${DESTDIR}/var/games/phantasia
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
+ ${DATAFILES} ${DESTDIR}/var/games/phantasia
-# Make Phantasia map. Change the map commands reflect your ${INSTALL}ation.
+# Make Phantasia map. Change the map commands reflect your installation.
# PLOTDEVICE is used for plotting the map. Change as appropriate.
-
map: map.c
${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
./map | plot > /dev/tty
-phantasia.0: phantasia.6
- tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET}
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud