]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - pig/Makefile
Fix warp compilation
[bsdgames-darwin.git] / pig / Makefile
index 0932b165a90ef9c68b735a7d5fd7958f655e9d52..a9f85f23f88f146d4dbb26fd7310ba14fe1a9375 100644 (file)
@@ -3,5 +3,19 @@
 
 PROG=  pig
 MAN=   pig.6
+SRCS=  pig.c
 
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(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)
+
+clean:
+       rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install