|
|
|
|
@ -1,27 +1,27 @@
|
|
|
|
|
Index: src/github.com/wal-g/wal-g/Makefile
|
|
|
|
|
--- src/github.com/wal-g/wal-g/Makefile.orig 2020-09-01 11:08:16.000000000 +0200
|
|
|
|
|
+++ src/github.com/wal-g/wal-g/Makefile 2020-09-01 12:19:08.289314000 +0200
|
|
|
|
|
@@ -25,14 +25,17 @@
|
|
|
|
|
--- src/github.com/wal-g/wal-g/Makefile.orig 2021-02-26 21:39:24.000000000 +0100
|
|
|
|
|
+++ src/github.com/wal-g/wal-g/Makefile 2021-02-26 22:06:27.272729000 +0100
|
|
|
|
|
@@ -26,14 +26,17 @@
|
|
|
|
|
BUILD_TAGS:=$(BUILD_TAGS) lzo
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
-.PHONY: unittest fmt lint install clean
|
|
|
|
|
-.PHONY: unittest fmt lint clean
|
|
|
|
|
+PHONY: unittest fmt lint install clean
|
|
|
|
|
+.PHONY: all
|
|
|
|
|
+
|
|
|
|
|
+all: deps pg_build
|
|
|
|
|
|
|
|
|
|
test: install deps lint unittest pg_build mysql_build redis_build mongo_build unlink_brotli pg_integration_test mysql_integration_test redis_integration_test fdb_integration_test
|
|
|
|
|
test: deps unittest pg_build mysql_build redis_build mongo_build unlink_brotli pg_integration_test mysql_integration_test redis_integration_test fdb_integration_test
|
|
|
|
|
|
|
|
|
|
pg_test: install deps pg_build lint unlink_brotli pg_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: install deps pg_build
|
|
|
|
|
install_and_build_pg: deps pg_build
|
|
|
|
|
|
|
|
|
|
@@ -177,8 +180,6 @@
|
|
|
|
|
@@ -191,8 +194,6 @@
|
|
|
|
|
deps: go_deps link_external_deps
|
|
|
|
|
|
|
|
|
|
go_deps:
|
|
|
|
|
|