about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9e73e1c..c29553b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ all: hare-gi
 
 DESTDIR =
 PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
 SRCDIR = $(PREFIX)/src
 HARESRCDIR = $(SRCDIR)/hare
 THIRDPARTYDIR = $(HARESRCDIR)/third-party
@@ -38,7 +39,8 @@ hare-gi:
 	hare build -o $@ cmd/hare-gi/
 .PHONY: hare-gi
 
-install: install3 install4
+install: hare-gi install3 install4
+	install -Dm755 hare-gi "$(DESTDIR)$(BINDIR)"/hare-gi
 
 install3:
 	@for mod in $(MODULES_GTK3); do \