Make `all` target depend on `clean` target

This commit is contained in:
kingecg 2025-08-02 22:08:08 +08:00
parent 8ce59e28b4
commit 8d25fb1a88
1 changed files with 2 additions and 2 deletions

View File

@ -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