]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - bcd/Makefile
Fix merge conflicts
[bsdgames-darwin.git] / bcd / Makefile
index 677c2b37117438223a226993a2132ca668bdd4bf..768a9b02fcbef6a590a4c35b239c90463844ef86 100644 (file)
@@ -1,13 +1,24 @@
-#      $NetBSD: Makefile,v 1.5 2006/05/11 23:16:28 mrg Exp $
+#      $NetBSD: Makefile,v 1.8 2009/07/26 03:02:38 dholland Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 PROG=  bcd
 MAN=   bcd.6
 MLINKS=        bcd.6 morse.6 bcd.6 ppt.6
-HIDEGAME=hidegame
+SRCS= bcd.c
 
-.include <bsd.prog.mk>
+all: $(PROG)
 
-.if ${HAVE_GCC} == 4
-COPTS+=        -Wno-pointer-sign
-.endif
+$(PROG): $(SRCS)
+       $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
+       $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+       $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+       $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+       $(LN) -sf $(MAN).zst $(DESTDIR)/$(PREFIX)/share/man/man6/morse.6
+       $(LN) -sf $(MAN).zst $(DESTDIR)/$(PREFIX)/share/man/man6/ppt.6
+
+clean:
+       rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install