freebsd-skq/games/phantasia/Makefile
Bruce Evans 883f4eba06 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.
1998-01-16 09:43:47 +00:00

32 lines
957 B
Makefile

# @(#)Makefile 8.1 (Berkeley) 5/31/93
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=${DATAFILES} map setup setup.o stamp.setuprun
all: stamp.setuprun
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:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
${DATAFILES} ${DESTDIR}/var/games/phantasia
# 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
.include <bsd.prog.mk>