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.5 KiB

Index: src/github.com/wal-g/wal-g/Makefile
--- src/github.com/wal-g/wal-g/Makefile.orig 2021-05-15 00:46:51.000000000 +0200
+++ src/github.com/wal-g/wal-g/Makefile 2021-05-15 01:55:56.483755000 +0200
@@ -26,14 +26,17 @@
BUILD_TAGS:=$(BUILD_TAGS) lzo
endif
-.PHONY: unittest fmt lint clean
+PHONY: unittest fmt lint install clean
+.PHONY: all
+
+all: deps pg_build
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: 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
@@ -195,8 +198,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