Add support for ARMv5
This commit is contained in:
parent
e4b13b753b
commit
f575441aa6
18
Makefile
18
Makefile
@ -45,12 +45,17 @@ build: assets
|
||||
go build
|
||||
@echo "You can now execute ./pgweb"
|
||||
|
||||
release: assets
|
||||
release: clean assets
|
||||
@echo "Building binaries..."
|
||||
@gox \
|
||||
-osarch="$(TARGETS)" \
|
||||
-osarch "$(TARGETS)" \
|
||||
-ldflags "-X github.com/sosedoff/pgweb/pkg/command.GitCommit $(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime $(BUILD_TIME)" \
|
||||
-output="./bin/pgweb_{{.OS}}_{{.Arch}}"
|
||||
-output "./bin/pgweb_{{.OS}}_{{.Arch}}"
|
||||
|
||||
@echo "Building ARM binaries..."
|
||||
GOOS=linux GOARCH=arm GOARM=5 go build \
|
||||
-ldflags "-X github.com/sosedoff/pgweb/pkg/command.GitCommit $(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime $(BUILD_TIME)" \
|
||||
-o "./bin/pgweb_linux_arm_v5"
|
||||
|
||||
@echo "\nPackaging binaries...\n"
|
||||
@./script/package.sh
|
||||
@ -66,10 +71,9 @@ setup:
|
||||
godep restore
|
||||
|
||||
clean:
|
||||
rm -f ./pgweb
|
||||
rm -rf ./bin/*
|
||||
rm -f bindata.go
|
||||
make assets
|
||||
@rm -f ./pgweb
|
||||
@rm -rf ./bin/*
|
||||
@rm -f bindata.go
|
||||
|
||||
docker:
|
||||
docker build -t pgweb .
|
||||
|
Loading…
x
Reference in New Issue
Block a user