From 8f6735a7b8851d9f9e1e24b84f4db412ff678e37 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 24 Mar 1997 22:15:37 +0000 Subject: - Makefile cleanups --- hack/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'hack') diff --git a/hack/Makefile b/hack/Makefile index d123d3b7..a233704b 100644 --- a/hack/Makefile +++ b/hack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 1997/01/07 12:09:53 tls Exp $ +# $NetBSD: Makefile,v 1.19 1997/03/24 22:15:44 christos Exp $ # @(#)Makefile 8.2 (Berkeley) 4/27/95 PROG= hack @@ -20,6 +20,8 @@ DPADD+= ${LIBTERM} ${LIBCOMPAT} LDADD+= -ltermcap -lcompat HIDEGAME=hidegame CLEANFILES+=hack.onames.h makedefs +FILES=hh data +FILESDIR=/var/games/hackdir ${PROG}: hack.onames.h @@ -29,13 +31,15 @@ hack.onames.h: makedefs def.objects.h makedefs: makedefs.c ${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD} -beforeinstall: +.if !exists(${DESTDIR}${FILESDIR}/perm) +proginstall:: clobber +.endif + +clobber: ${INSTALL} -c -o games -g games -m 600 /dev/null \ ${DESTDIR}/var/games/hackdir/perm ${INSTALL} -c -o games -g games -m 600 /dev/null \ ${DESTDIR}/var/games/hackdir/record - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/help \ - ${.CURDIR}/hh ${.CURDIR}/data ${DESTDIR}/var/games/hackdir rm -f ${DESTDIR}/var/games/hackdir/bones* .include -- cgit v1.2.3