cherry/Makefile

22 lines
273 B
Makefile
Raw Normal View History

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