-# $NetBSD: Makefile,v 1.12 2003/10/21 10:01:19 lukem Exp $
+# $NetBSD: Makefile,v 1.14 2013/02/16 16:30:28 jmcneill Exp $
# @(#)Makefile 8.1 (Berkeley) 6/12/93
PROG= adventure
SRCS= main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c
MAN= adventure.6
HIDEGAME=hidegame
-CLEANFILES+=setup data.c
+CLEANFILES+=mkdata setup.lo data.c
-data.c: glorkz setup
+data.c: glorkz mkdata
${_MKTARGET_CREATE}
- ./setup ${.CURDIR}/glorkz > data.c
+ ./mkdata ${.CURDIR}/glorkz > data.c
-setup: setup.c hdr.h
+setup.lo: hdr.h
+mkdata: setup.lo
${_MKTARGET_LINK}
- ${HOST_LINK.c} -o setup ${.CURDIR}/setup.c
+ ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
.include <bsd.prog.mk>