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
|
go build
|
||||||
@echo "You can now execute ./pgweb"
|
@echo "You can now execute ./pgweb"
|
||||||
|
|
||||||
release: assets
|
release: clean assets
|
||||||
@echo "Building binaries..."
|
@echo "Building binaries..."
|
||||||
@gox \
|
@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)" \
|
-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"
|
@echo "\nPackaging binaries...\n"
|
||||||
@./script/package.sh
|
@./script/package.sh
|
||||||
@ -66,10 +71,9 @@ setup:
|
|||||||
godep restore
|
godep restore
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ./pgweb
|
@rm -f ./pgweb
|
||||||
rm -rf ./bin/*
|
@rm -rf ./bin/*
|
||||||
rm -f bindata.go
|
@rm -f bindata.go
|
||||||
make assets
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
docker build -t pgweb .
|
docker build -t pgweb .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user