mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 15:21:02 +00:00
Add release target in Makefile
This commit is contained in:
parent
6c11746ac8
commit
3a1bcc353e
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
.PHONY: glide vendor-update docker pilosa crossbuild install generate statik
|
||||
.PHONY: glide vendor-update docker pilosa crossbuild install generate statik release
|
||||
|
||||
GLIDE := $(shell command -v glide 2>/dev/null)
|
||||
STATIK := $(shell command -v statik 2>/dev/null)
|
||||
|
|
@ -39,6 +39,13 @@ pilosa: vendor
|
|||
crossbuild: vendor
|
||||
mkdir -p build/pilosa-$(IDENTIFIER)
|
||||
make pilosa FLAGS="-o build/pilosa-$(IDENTIFIER)/pilosa"
|
||||
cp {LICENSE,README.md} build/pilosa-$(IDENTIFIER)
|
||||
tar -cvz -C build -f build/pilosa-$(IDENTIFIER).tar.gz pilosa-$(IDENTIFIER)/
|
||||
@echo "Created release build: build/pilosa-$(IDENTIFIER).tar.gz"
|
||||
|
||||
release:
|
||||
make crossbuild GOOS=linux GOARCH=amd64
|
||||
make crossbuild GOOS=darwin GOARCH=amd64
|
||||
|
||||
install: vendor
|
||||
go install -ldflags $(LDFLAGS) $(FLAGS) $(CLONE_URL)/cmd/pilosa
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue