21 lines
		
	
	
	
		
			273 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			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 $@ .
 |