summaryrefslogtreecommitdiffstats
path: root/number/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'number/Makefile')
-rw-r--r--number/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/number/Makefile b/number/Makefile
index 7f20784d..22ccf93b 100644
--- a/number/Makefile
+++ b/number/Makefile
@@ -3,5 +3,19 @@
PROG= number
MAN= number.6
+SRCS= number.c
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
+ $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN)
+
+clean:
+ rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install