Index: src/github.com/wal-g/wal-g/Makefile --- src/github.com/wal-g/wal-g/Makefile.orig 2019-06-20 17:35:32.000000000 +0200 +++ src/github.com/wal-g/wal-g/Makefile 2019-06-20 17:41:58.237039000 +0200 @@ -7,18 +7,20 @@ TEST_FILES = $(wildcard test/*.go testtools/*.go) PKG := github.com/wal-g/wal-g -.PHONY: unittest fmt lint install clean +.PHONY: all ifdef GOTAGS override GOTAGS := -tags $(GOTAGS) endif +all: deps pg_build + test: install deps lint unittest pg_build mysql_build redis_build unlink_brotli pg_integration_test mysql_integration_test redis_integration_test pg_test: install deps pg_build lint unittest unlink_brotli pg_integration_test pg_build: $(CMD_FILES) $(PKG_FILES) - (cd $(MAIN_PG_PATH) && go build -o wal-g $(GOTAGS) -ldflags "-s -w -X github.com/wal-g/wal-g/cmd.BuildDate=`date -u +%Y.%m.%d_%H:%M:%S` -X github.com/wal-g/wal-g/cmd.GitRevision=`git rev-parse --short HEAD` -X github.com/wal-g/wal-g/cmd.WalgVersion=`git tag -l --points-at HEAD`") + (cd $(MAIN_PG_PATH) && go build -v -o wal-g $(GOTAGS) -ldflags "-s -w -X github.com/wal-g/wal-g/cmd.BuildDate=`date -u +%Y.%m.%d_%H:%M:%S` -X github.com/wal-g/wal-g/cmd.GitRevision=`git rev-parse --short HEAD` -X github.com/wal-g/wal-g/cmd.WalgVersion=`git tag -l --points-at HEAD`") pg_int_tests_only: docker-compose build pg_tests @@ -87,8 +89,6 @@ go list ./... | grep -Ev 'vendor|submodules|tmp' | xargs golint deps: - git submodule update --init - dep ensure ./link_brotli.sh install: @@ -98,4 +98,3 @@ unlink_brotli: rm -rf vendor/github.com/google/brotli/* mv tmp/* vendor/github.com/google/brotli/ - rm -rf tmp/