summaryrefslogtreecommitdiffstats
path: root/random/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'random/Makefile')
-rw-r--r--random/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/random/Makefile b/random/Makefile
index a7fe642e..cad8a5de 100644
--- a/random/Makefile
+++ b/random/Makefile
@@ -3,5 +3,19 @@
PROG= random
MAN= random.6
+SRCS= random.c
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw
+ $(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