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.
33 lines
1.7 KiB
33 lines
1.7 KiB
Index: src/github.com/wal-g/wal-g/Makefile |
|
--- src/github.com/wal-g/wal-g/Makefile.orig 2025-01-11 13:27:57.135890000 +0100 |
|
+++ src/github.com/wal-g/wal-g/Makefile 2025-01-11 17:37:21.202626000 +0100 |
|
@@ -40,14 +40,17 @@ |
|
BUILD_TAGS:=$(BUILD_TAGS) lzo |
|
endif |
|
|
|
-.PHONY: unittest fmt lint clean install_tools |
|
+PHONY: unittest fmt lint clean install |
|
+.PHONY: all |
|
+ |
|
+all: deps pg_build |
|
|
|
test: deps unittest pg_build mysql_build redis_build mongo_build gp_build cloudberry_build unlink_brotli pg_integration_test mysql_integration_test redis_integration_test fdb_integration_test gp_integration_test cloudberry_integration_test etcd_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 -v -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`") |
|
|
|
install_and_build_pg: deps pg_build |
|
|
|
@@ -303,9 +306,7 @@ |
|
deps: go_deps link_external_deps |
|
|
|
go_deps: |
|
- git submodule update --init |
|
cp CMakeLists-brotli.txt submodules/brotli/CMakeLists.txt |
|
- 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
|
|
|