]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hack/Makefile
Move limericks to limerick file. Sort that and uniq.
[bsdgames-darwin.git] / hack / Makefile
index 4159352c1cef6551c921308b4bcd68b8ed64e4fc..e40ece4adaea9858276454cc151e851949726eca 100644 (file)
@@ -1,6 +1,8 @@
-#      $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
@@ -25,7 +27,10 @@ FILES=help hh data
 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
 
@@ -46,9 +51,9 @@ afterinstall: clobber
 .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*