summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-10-03 17:41:48 +0100
committerNick Thomas <nick@gitlab.com>2019-10-08 12:28:26 +0100
commit542b26139243c8fbed2af669d081f10c4ebbae40 (patch)
tree6f849899b280abd36fa7db94333a2e4a04b566e7
parent9ba79e43395cf09e3c5904c541a011ea25b620f1 (diff)
downloadgitlab-shell-542b26139243c8fbed2af669d081f10c4ebbae40.tar.gz
Intelligently rebuild binaries
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b21d1b0..8b3caf8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
.PHONY: validate verify verify_ruby verify_golang test test_ruby test_golang setup _install build compile check clean
+GO_SOURCES := $(shell find go -name '*.go')
+
validate: verify test
verify: verify_ruby verify_golang
@@ -32,7 +34,7 @@ _install:
build: bin/gitlab-shell
compile: bin/gitlab-shell
-bin/gitlab-shell:
+bin/gitlab-shell: $(GO_SOURCES)
bin/compile
check: