Makefile: fix build detection

Because rebuilding after source changes shouldn't require `make clean all`, just `make`.
This commit is contained in:
Adrian Ho 2025-09-15 15:13:56 +08:00
parent 5af14a9e04
commit b9ba59618a

View File

@ -4,11 +4,12 @@ TARGET_OS = darwin
TARGET_ARCH = arm64 amd64
VERSION = $(shell cat .version)
ASSETS = $(wildcard release/*)
SOURCES = $(shell find . -name '*.go')
RELEASE_NOTE = .release-note.md
all: build
$(BINARY_NAME):
$(BINARY_NAME): $(SOURCES) .version
go mod tidy
go build -o $(BINARY_NAME)