Fix compile tags in makefile due to compiler warnings
This commit is contained in:
parent
3c3c61fee2
commit
376d2283bf
4
Makefile
4
Makefile
@ -49,12 +49,12 @@ 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..."
|
@echo "Building ARM binaries..."
|
||||||
GOOS=linux GOARCH=arm GOARM=5 go build \
|
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)" \
|
-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"
|
-o "./bin/pgweb_linux_arm_v5"
|
||||||
|
|
||||||
@echo "\nPackaging binaries...\n"
|
@echo "\nPackaging binaries...\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user