diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | scripts/build.mk | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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 |
