mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
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.
This commit is contained in:
parent
ea07747224
commit
883f4eba06
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32544
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user