mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
WIP Updated makefile to use govendor
This commit is contained in:
@@ -13,12 +13,12 @@ LDFLAGS="-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.GoVersion=${G
|
|||||||
linux-amd64:
|
linux-amd64:
|
||||||
@echo "Building linux/amd64 binaries in ${BIN_DIR}"
|
@echo "Building linux/amd64 binaries in ${BIN_DIR}"
|
||||||
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
||||||
@$(foreach pkg,$(pkgs),go get ./... && GOOS=linux GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
@$(foreach pkg,$(pkgs),govendor sync && GOOS=linux GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
||||||
|
|
||||||
linux-386:
|
linux-386:
|
||||||
@echo "Building linux/386 binaries in ${BIN_DIR}"
|
@echo "Building linux/386 binaries in ${BIN_DIR}"
|
||||||
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
|
||||||
@$(foreach pkg,$(pkgs),go get ./... && GOOS=linux GOARCH=386 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
@$(foreach pkg,$(pkgs),govendor sync && GOOS=linux GOARCH=386 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
|
||||||
|
|
||||||
darwin-amd64:
|
darwin-amd64:
|
||||||
@echo "Building darwin/amd64 binaries in ${BIN_DIR}"
|
@echo "Building darwin/amd64 binaries in ${BIN_DIR}"
|
||||||
|
Reference in New Issue
Block a user