diff options
author | Tobias Schmidt <tobidt@gmail.com> | 2017-03-22 18:35:32 -0300 |
---|---|---|
committer | Tobias Schmidt <tobidt@gmail.com> | 2017-03-22 22:02:21 -0300 |
commit | 31189c9507c3f710568adb0c4af19a491a86fb8e (patch) | |
tree | b8d6088255a6c918e70abd8c3c3d1497bca9c735 /Makefile | |
parent | 6580c95305dd97499025bf3bcfc9a461173ffa54 (diff) | |
download | prometheus_node_collector-31189c9507c3f710568adb0c4af19a491a86fb8e.tar.bz2 prometheus_node_collector-31189c9507c3f710568adb0c4af19a491a86fb8e.tar.xz prometheus_node_collector-31189c9507c3f710568adb0c4af19a491a86fb8e.zip |
Download promu and staticcheck every time by default
If this is not desired, copy/symlink these binaries to a different path and
set the respective environment variables. For example:
ln -s "$(GOPATH)/bin/{promu,staticcheck}" /usr/local/bin/
PROMU=/usr/local/bin/promu STATICCHECK=/usr/local/bin/staticcheck make
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -84,3 +84,9 @@ $(GOPATH)/bin/staticcheck: | |||
84 | 84 | ||
85 | 85 | ||
86 | .PHONY: all style format build test test-e2e vet tarball docker promu staticcheck | 86 | .PHONY: all style format build test test-e2e vet tarball docker promu staticcheck |
87 | |||
88 | # Declaring the binaries at their default locations as PHONY targets is a hack | ||
89 | # to ensure the latest version is downloaded on every make execution. | ||
90 | # If this is not desired, copy/symlink these binaries to a different path and | ||
91 | # set the respective environment variables. | ||
92 | .PHONY: $(GOPATH)/bin/promu $(GOPATH)/bin/staticcheck | ||