cherry/Makefile

24 lines
298 B
Makefile
Raw Permalink Normal View History

2025-02-11 19:59:27 -06:00
GOFLAGS = -v
2025-02-11 18:27:13 -06:00
BIN = bin
BINS += $(BIN)/cherry
SRC = $(shell find . -iname "*.go")
.PHONY: all
all: $(BINS)
.PHONY: clean
clean:
$(RM) $(BINS)
.PHONY: install
install: all
cp bin/cherry /usr/local/bin/cherry
$(BIN):
mkdir -p $(BIN)
$(BIN)/cherry: $(BIN) $(SRC)
2025-02-11 19:59:27 -06:00
go build $(GOFLAGS) -o $@ .