You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
APP := gopherhole
|
|
BIN := .bin
|
|
|
|
dev: clean $(BIN)/config.json $(BIN)/$(APP)
|
|
sudo $(BIN)/$(APP)
|
|
|
|
$(BIN)/$(APP):
|
|
go build -v -o $(BIN)/$(APP) .
|
|
|
|
$(BIN)/config.json: $(BIN)
|
|
@cp ./config.json $(BIN)/config.json
|
|
|
|
$(BIN):
|
|
mkdir -p $@
|
|
|
|
clean:
|
|
@rm -rf $(BIN)
|
|
|
|
.PHONY: dev clean |