Support PREFIX environment variable (#308)
This commit is contained in:
parent
0b9268ada7
commit
f00aa08417
1 changed files with 6 additions and 5 deletions
7
Makefile
7
Makefile
|
@ -1,4 +1,5 @@
|
|||
VERSION?=$(shell git describe --tags --dirty | cut -c 2-)
|
||||
PREFIX ?= /usr/local
|
||||
VERSION ?= $(shell git describe --tags --dirty | cut -c 2-)
|
||||
IS_SNAPSHOT = $(if $(findstring -, $(VERSION)),true,false)
|
||||
MAJOR_VERSION = $(word 1, $(subst ., ,$(VERSION)))
|
||||
MINOR_VERSION = $(word 2, $(subst ., ,$(VERSION)))
|
||||
|
@ -15,8 +16,8 @@ test:
|
|||
$(ACT)
|
||||
|
||||
install: build
|
||||
@cp dist/local/act /usr/local/bin/act
|
||||
@chmod 755 /usr/local/bin/act
|
||||
@cp dist/local/act $(PREFIX)/bin/act
|
||||
@chmod 755 $(PREFIX)/bin/act
|
||||
@act --version
|
||||
|
||||
installer:
|
||||
|
|
Loading…
Reference in a new issue