Skip to content

Commit

Permalink
Add support for ARMv5
Browse files Browse the repository at this point in the history
  • Loading branch information
sosedoff committed Jun 28, 2016
1 parent e4b13b7 commit f575441
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 .
Expand Down

0 comments on commit f575441

Please sign in to comment.