mirror of
https://github.com/hzqtc/taproom.git
synced 2026-01-09 05:40:50 +08:00
Makefile: fix build detection
Because rebuilding after source changes shouldn't require `make clean all`, just `make`.
This commit is contained in:
parent
5af14a9e04
commit
b9ba59618a
3
Makefile
3
Makefile
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user