Add install target to Makefile
This commit is contained in:
parent
dbec2d6a05
commit
f245182e76
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -1,4 +1,5 @@
|
||||||
NAME=matrix-alertmanager-receiver
|
NAME=yggdrasil-http-proxy
|
||||||
|
PREFIX?=/usr/local
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
|
@ -8,5 +9,8 @@ getDeps:
|
||||||
build:
|
build:
|
||||||
go build
|
go build
|
||||||
|
|
||||||
|
install: build
|
||||||
|
install -m 0755 $(NAME) $(PREFIX)/bin/$(NAME)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(NAME)
|
rm $(NAME)
|
||||||
|
|
Loading…
Reference in a new issue