summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--scripts/build.mk6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b3592e3..9bbfafd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
SUBDIRS := cmd/tunnel cmd/tunneld
-TARGETS := build clean
+TARGETS := build clean install
.PHONY: default
default: build
diff --git a/scripts/build.mk b/scripts/build.mk
index 9e2b2f8..480ce13 100644
--- a/scripts/build.mk
+++ b/scripts/build.mk
@@ -1,3 +1,5 @@
+BIN=$(shell pwd | xargs basename)
+
.PHONY: default
default: build
@@ -8,3 +10,7 @@ build:
.PHONY: clean
clean:
go clean
+
+.PHONY: install
+install: build
+ install $(BIN) /usr/local/bin