You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.6 KiB
32 lines
1.6 KiB
Index: src/github.com/wal-g/wal-g/Makefile |
|
--- src/github.com/wal-g/wal-g/Makefile.orig 2021-11-17 16:22:55.000000000 +0100 |
|
+++ src/github.com/wal-g/wal-g/Makefile 2021-11-17 16:47:02.249321000 +0100 |
|
@@ -29,14 +29,17 @@ |
|
BUILD_TAGS:=$(BUILD_TAGS) lzo |
|
endif |
|
|
|
-.PHONY: unittest fmt lint clean install_tools |
|
+PHONY: unittest fmt lint clean install clean |
|
+.PHONY: all |
|
+ |
|
+all: deps pg_build |
|
|
|
test: deps unittest pg_build mysql_build redis_build mongo_build gp_build unlink_brotli pg_integration_test mysql_integration_test redis_integration_test fdb_integration_test gp_integration_test |
|
|
|
pg_test: deps pg_build unlink_brotli pg_integration_test |
|
|
|
pg_build: $(CMD_FILES) $(PKG_FILES) |
|
- (cd $(MAIN_PG_PATH) && go build -mod vendor -tags "$(BUILD_TAGS)" -o wal-g -ldflags "-s -w -X github.com/wal-g/wal-g/cmd/pg.buildDate=`date -u +%Y.%m.%d_%H:%M:%S` -X github.com/wal-g/wal-g/cmd/pg.gitRevision=`git rev-parse --short HEAD` -X github.com/wal-g/wal-g/cmd/pg.walgVersion=`git tag -l --points-at HEAD`") |
|
+ (cd $(MAIN_PG_PATH) && go build -mod vendor -v -tags "$(BUILD_TAGS)" -o wal-g -ldflags "-s -w -X github.com/wal-g/wal-g/cmd/pg.buildDate=`date -u +%Y.%m.%d_%H:%M:%S` -X github.com/wal-g/wal-g/cmd/pg.gitRevision=`git rev-parse --short HEAD` -X github.com/wal-g/wal-g/cmd/pg.walgVersion=`git tag -l --points-at HEAD`") |
|
|
|
install_and_build_pg: deps pg_build |
|
|
|
@@ -232,8 +235,6 @@ |
|
deps: go_deps link_external_deps |
|
|
|
go_deps: |
|
- git submodule update --init |
|
- go mod vendor |
|
ifdef USE_LZO |
|
sed -i 's|\(#cgo LDFLAGS:\) .*|\1 -Wl,-Bstatic -llzo2 -Wl,-Bdynamic|' vendor/github.com/cyberdelia/lzo/lzo.go |
|
endif
|
|
|