-# $NetBSD: Makefile,v 1.27 1997/11/20 08:52:16 mrg Exp $
+# $NetBSD: Makefile,v 1.33 2002/03/05 21:29:56 thorpej Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
+.include <bsd.own.mk>
+
PROG= hack
CPPFLAGS+=-I.
SRCS+= hack.onames.h
FILESDIR=/var/games/hackdir
hack.onames.h: makedefs def.objects.h
- ${.OBJDIR}/makedefs ${.CURDIR}/def.objects.h > hack.onames.h
+ ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
+
+makedefs: makedefs.c
+ ${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c
hack.h: hack.onames.h
.endif
clobber:
- ${INSTALL} -c -o games -g games -m 660 /dev/null \
+ ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
${DESTDIR}/var/games/hackdir/perm
- ${INSTALL} -c -o games -g games -m 660 /dev/null \
+ ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
${DESTDIR}/var/games/hackdir/record
rm -f ${DESTDIR}/var/games/hackdir/bones*