Merge pull request #318 from nnadeau/master
Added PHONY targets to Makefile
This commit is contained in:
commit
bbc8123f27
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -9,21 +9,26 @@ NEW_VERSION ?= $(MAJOR_VERSION).$(MINOR_VERSION).$(shell echo $$(( $(PATCH_VERSI
|
||||||
ACT ?= go run main.go
|
ACT ?= go run main.go
|
||||||
export GITHUB_TOKEN = $(shell cat ~/.config/github/token)
|
export GITHUB_TOKEN = $(shell cat ~/.config/github/token)
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
go build -ldflags "-X main.version=$(VERSION)" -o dist/local/act main.go
|
go build -ldflags "-X main.version=$(VERSION)" -o dist/local/act main.go
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
$(ACT)
|
$(ACT)
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
install: build
|
install: build
|
||||||
@cp dist/local/act $(PREFIX)/bin/act
|
@cp dist/local/act $(PREFIX)/bin/act
|
||||||
@chmod 755 $(PREFIX)/bin/act
|
@chmod 755 $(PREFIX)/bin/act
|
||||||
@act --version
|
@act --version
|
||||||
|
|
||||||
|
.PHONY: installer
|
||||||
installer:
|
installer:
|
||||||
@GO111MODULE=off go get github.com/goreleaser/godownloader
|
@GO111MODULE=off go get github.com/goreleaser/godownloader
|
||||||
godownloader -r nektos/act -o install.sh
|
godownloader -r nektos/act -o install.sh
|
||||||
|
|
||||||
|
.PHONY: promote
|
||||||
promote:
|
promote:
|
||||||
@git fetch --tags
|
@git fetch --tags
|
||||||
@echo "VERSION:$(VERSION) IS_SNAPSHOT:$(IS_SNAPSHOT) NEW_VERSION:$(NEW_VERSION)"
|
@echo "VERSION:$(VERSION) IS_SNAPSHOT:$(IS_SNAPSHOT) NEW_VERSION:$(NEW_VERSION)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue