summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-07 01:41:58 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-07 01:41:58 +0000
commit5325b598c0c489d7fee796c1a7d9faee396488db (patch)
treeeb64d809cfb988da06c90ae126c83897d6d01a4b
parentd2c317efc5dc28554b453d64d03257458eb6201b (diff)
Notes
-rw-r--r--games/hack/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/games/hack/Makefile b/games/hack/Makefile
index b07c4c6e8c62..5f0cf3162e5f 100644
--- a/games/hack/Makefile
+++ b/games/hack/Makefile
@@ -20,11 +20,13 @@ CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
HIDEGAME=hidegame
CLEANFILES+= hack.onames.h makedefs
+build-tools: makedefs
+
hack.onames.h: makedefs def.objects.h
./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
-makedefs: makedefs.c
- ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c
+makedefs: makedefs.o
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
beforeinstall:
${INSTALL} -c -o bin -g bin -m ${NOBINMODE} /dev/null \
@@ -34,9 +36,9 @@ beforeinstall:
${INSTALL} -c -o bin -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
${DESTDIR}/var/games/hackdir/rumors
${INSTALL} -c -o bin -g bin -m ${NOBINMODE} \
- ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \
- ${DESTDIR}/var/games/hackdir
+ ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \
+ ${DESTDIR}/var/games/hackdir
rm -f ${DESTDIR}/var/games/hackdir/bones* \
- ${DESTDIR}/var/games/hackdir/save/*
+ ${DESTDIR}/var/games/hackdir/save/*
.include <bsd.prog.mk>