23 lines
298 B
Makefile
23 lines
298 B
Makefile
GOFLAGS = -v
|
|
|
|
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 $(GOFLAGS) -o $@ .
|