Make `all` target depend on `clean` target
This commit is contained in:
parent
8ce59e28b4
commit
8d25fb1a88
4
Makefile
4
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
ARCHS := linux-amd64 linux-arm64 darwin-amd64
|
ARCHS := linux-amd64 linux-arm64 darwin-amd64
|
||||||
VERSION ?= $(shell git describe --tags --always)
|
VERSION ?= $(shell git describe --tags --always)
|
||||||
all: $(ARCHS)
|
all: clean $(ARCHS)
|
||||||
|
|
||||||
$(ARCHS):
|
$(ARCHS):
|
||||||
@echo "Building for $(@)"
|
@echo "Building for $(@)"
|
||||||
|
|
@ -13,4 +13,4 @@ $(ARCHS):
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
go clean
|
go clean
|
||||||
rm -rf target
|
rm -rf target
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue