From a610e87ce4224939eaf883d1d31db29c31318390 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 16 Jan 1998 09:43:47 +0000 Subject: 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. --- games/phantasia/Makefile | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) (limited to 'games/phantasia/Makefile') 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 -- cgit v1.1