mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 11:48:56 +00:00
23 lines
527 B
Makefile
23 lines
527 B
Makefile
PROJECTNAME=viscol.exe
|
|
ROOT_DIR=.
|
|
all: help
|
|
## Available proxies for downloading go modules are listed in "https://github.com/golang/go/wiki/Modules#how-do-i-use-vendoring-with-modules-is-vendoring-going-away".
|
|
#GOPROXY=https://mirrors.aliyun.com/goproxy
|
|
GOPROXY=https://goproxy.io
|
|
|
|
build:
|
|
GOPROXY=$(GOPROXY) go build -o $(ROOT_DIR)/$(PROJECTNAME)
|
|
|
|
run: build
|
|
./$(PROJECTNAME)
|
|
|
|
.PHONY: help
|
|
|
|
help: Makefile
|
|
@echo
|
|
@echo " Choose a command run:"
|
|
@echo
|
|
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
|
|
@echo
|
|
|