mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-06 02:26:36 +00:00
Make build idempotent
Only rebuild windows_exporter.exe on changes to any Go source files. Signed-off-by: Ben Reedy <breed808@breed808.com>
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,6 +1,8 @@
|
|||||||
export GOOS=windows
|
export GOOS=windows
|
||||||
|
|
||||||
build:
|
.PHONY: build
|
||||||
|
build: windows_exporter.exe
|
||||||
|
windows_exporter.exe: **/*.go
|
||||||
promu build -v
|
promu build -v
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@@ -10,7 +12,7 @@ lint:
|
|||||||
golangci-lint -c .golangci.yaml run
|
golangci-lint -c .golangci.yaml run
|
||||||
|
|
||||||
.PHONY: e2e-test
|
.PHONY: e2e-test
|
||||||
e2e-test: build
|
e2e-test: windows_exporter.exe
|
||||||
powershell -NonInteractive -ExecutionPolicy Bypass -File .\tools\end-to-end-test.ps1
|
powershell -NonInteractive -ExecutionPolicy Bypass -File .\tools\end-to-end-test.ps1
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
|
|||||||
Reference in New Issue
Block a user