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.
 
 
 
 
 
 

37 lines
1.7 KiB

Index: src/github.com/wal-g/wal-g/Makefile
--- src/github.com/wal-g/wal-g/Makefile.orig 2019-12-18 00:25:25.000000000 +0100
+++ src/github.com/wal-g/wal-g/Makefile 2019-12-18 00:34:33.959813000 +0100
@@ -10,14 +10,17 @@
COVERAGE_FILE := coverage.out
TEST := "pg_tests"
-.PHONY: unittest fmt lint install 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
pg_test: install deps pg_build lint unlink_brotli pg_integration_test
pg_build: $(CMD_FILES) $(PKG_FILES)
- (cd $(MAIN_PG_PATH) && go build -tags "brotli lzo" -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 -tags "brotli lzo" -o wal-g -ldflags "-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
@@ -134,8 +137,6 @@
go list ./... | grep -Ev 'vendor|submodules|tmp' | xargs golint
deps:
- git submodule update --init
- dep ensure
sed -i 's|\(#cgo LDFLAGS:\) .*|\1 -Wl,-Bstatic -llzo2 -Wl,-Bdynamic|' vendor/github.com/cyberdelia/lzo/lzo.go
./link_brotli.sh
@@ -147,4 +148,3 @@
unlink_brotli:
rm -rf vendor/github.com/google/brotli/*
mv tmp/* vendor/github.com/google/brotli/
- rm -rf tmp/