-# $NetBSD: Makefile,v 1.4 1995/04/22 07:53:41 cgd Exp $
+# $NetBSD: Makefile,v 1.10 2000/01/25 21:41:18 drochner Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
-NOOBJ= noobj
-all wargames clean cleandir depend lint tags:
+SCRIPTS=wargames.sh
+MAN= wargames.6
-install:
- install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${.CURDIR}/wargames.sh ${DESTDIR}/usr/games/wargames
+all:
-.include <bsd.prog.mk>
+install: $(MAN) $(SCRIPTS)
+ $(GINSTALL) -Dm755 $(SCRIPTS) $(DESTDIR)/$(PREFIX)/games/$(basename $(SCRIPTS))
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+
+.PHONY: all install clean