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.
 
 
 
 
 
 

43 lines
1.7 KiB

Index: src/github.com/wal-g/wal-g/Makefile
--- src/github.com/wal-g/wal-g/Makefile.orig 2019-04-22 23:19:00.029869000 +0200
+++ src/github.com/wal-g/wal-g/Makefile 2019-04-22 23:20:56.420096000 +0200
@@ -6,18 +6,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 unlink_brotli pg_integration_test mysql_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_integration_test:
docker-compose build $(DOCKER_COMMON) pg pg_tests
@@ -57,9 +59,7 @@
go list ./... | grep -Ev 'vendor|submodules|tmp' | xargs golint
deps:
- git submodule update --init
- dep ensure
./link_brotli.sh
install:
go get -u github.com/golang/dep/cmd/dep
@@ -68,4 +68,4 @@
unlink_brotli:
rm -rf vendor/github.com/google/brotli/*
mv tmp/* vendor/github.com/google/brotli/
- rm -rf tmp/
\ No newline at end of file
+ rm -rf tmp/