]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/Makefile
printf() pedant - do not pass variable alone, use %s.
[bsdgames-darwin.git] / monop / Makefile
index ebc1082557f4cf47d56f853c16662eeac6948015..70bdbc4fcb733bfe5a6b5708339de37df2abe3e2 100644 (file)
@@ -1,23 +1,25 @@
-#      from: @(#)Makefile      5.5 (Berkeley) 5/11/90
-#      $Id: Makefile,v 1.5 1993/08/01 05:45:00 mycroft Exp $
+#      $NetBSD: Makefile,v 1.20 1999/02/13 02:54:21 lukem Exp $
+#      @(#)Makefile    8.1 (Berkeley) 5/31/93
+
+.include <bsd.own.mk>
 
 PROG=  monop
 SRCS=  monop.c cards.c execute.c getinp.c houses.c jail.c misc.c morg.c \
        print.c prop.c rent.c roll.c spec.c trade.c
-MAN6=  monop.0
+MAN=   monop.6
 HIDEGAME=hidegame
 CLEANFILES+=initdeck cards.pck
+.if ${MKSHARE} != "no"
+FILES=cards.pck
+FILESDIR=/usr/share/games
+.endif
 
-all: cards.pck
-
-cards.pck: initdeck
-       ./initdeck ${.CURDIR}/cards.inp
+monop: cards.pck
 
 initdeck: initdeck.c
-       ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/initdeck.c
+       ${HOST_LINK.c} -o initdeck ${.CURDIR}/initdeck.c
 
-beforeinstall:
-       install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 cards.pck \
-           ${DESTDIR}/usr/share/games
+cards.pck: initdeck
+       ${.OBJDIR}/initdeck ${.CURDIR}/cards.inp
 
 .include <bsd.prog.mk>