1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 10:00:50 +00:00
bee/Makefile

30 lines
628 B
Makefile
Raw Normal View History

2017-04-24 14:55:12 +00:00
VERSION = $(shell grep 'const version' cmd/commands/version/version.go | sed -E 's/.*"(.+)"$$/v\1/')
2016-07-25 19:11:07 +00:00
.PHONY: all test clean build install
GOFLAGS ?= $(GOFLAGS:)
all: install test
build:
go build $(GOFLAGS) ./...
install:
go get $(GOFLAGS) ./...
test: install
go test $(GOFLAGS) ./...
bench: install
go test -run=NONE -bench=. $(GOFLAGS) ./...
clean:
go clean $(GOFLAGS) -i ./...
2017-04-24 14:55:12 +00:00
publish:
mkdir -p bin/$(VERSION)
cd bin/$(VERSION)
2020-12-16 05:20:41 +00:00
xgo -v -x --targets="windows/*,darwin/*,linux/386,linux/amd64,linux/arm-5,linux/arm64" -out bee_$(VERSION) github.com/beego/bee/v2
2017-04-24 14:55:12 +00:00
cd ..
2020-12-13 16:44:48 +00:00
ghr -u beego -r bee $(VERSION) $(VERSION)