]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - dm/Makefile
Use PREFIX now
[bsdgames-darwin.git] / dm / Makefile
index 0a2108eb0771f9ee45ad6a3f22f6ea44162d4c19..ea7c949e50630ab68ede52cffbc9efa448b34862 100644 (file)
@@ -1,14 +1,23 @@
-#      from: @(#)Makefile      5.7 (Berkeley) 9/30/90
-#      $Id: Makefile,v 1.3 1993/10/12 21:23:51 cgd Exp $
+#      $NetBSD: Makefile,v 1.11 2002/09/18 03:23:00 lukem Exp $
+#      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
-# -DLOG                log games
 PROG=  dm
-MAN8=  dm.0
-MAN5=  dm.conf.0
-BINOWN= games
-BINGRP=        kmem
-BINMODE=6555
-DPADD= ${LIBUTIL}
-LDADD= -lutil
-
-.include <bsd.prog.mk>
+SRCS=  dm.c utmpentry.c
+MAN8=  dm.8
+MAN5=  dm.conf.5
+
+all: $(PROG)
+
+$(PROG): $(SRCS)
+       $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -DSUPPORT_UTMPX -I$(ROOT)
+       $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+       $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+       $(GINSTALL) -Dm644 $(MAN8) $(DESTDIR)/$(PREFIX)/share/man/man8/$(MAN8)
+       $(GINSTALL) -Dm644 $(MAN5) $(DESTDIR)/$(PREFIX)/share/man/man5/$(MAN5)
+
+clean:
+       rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install