summaryrefslogtreecommitdiffstats
path: root/ching/ching/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ching/ching/Makefile')
-rw-r--r--ching/ching/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/ching/ching/Makefile b/ching/ching/Makefile
index 85559c1e..cd5d7eff 100644
--- a/ching/ching/Makefile
+++ b/ching/ching/Makefile
@@ -3,11 +3,15 @@
SCRIPTS=ching.sh
MAN= ching.6
-.include <bsd.own.mk>
-
-.if ${MKSHARE} != "no"
FILES= hexagrams macros
FILESDIR=/usr/share/games/ching
-.endif
-.include <bsd.prog.mk>
+all:
+
+install: $(PROG) $(MAN) $(SCRIPTS)
+ $(GINSTALL) -Dm755 $(SCRIPTS) $(DESTDIR)/usr/games/$(basename $(SCRIPTS))
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN)
+ $(GINSTALL) -d $(DESTDIR)$(FILESDIR)
+ $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR)
+
+.PHONY: all install clean