cherry/Makefile
2025-02-11 18:27:13 -06:00

21 lines
273 B
Makefile

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)
go build -o $@ .