Files
DelayNoMore/collider_visualizer/Makefile
T

23 lines
527 B
Makefile
Raw Normal View History

2022-10-14 11:49:04 +08:00
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".
2022-12-18 16:48:33 +08:00
#GOPROXY=https://mirrors.aliyun.com/goproxy
GOPROXY=https://goproxy.io
2022-10-14 11:49:04 +08:00
build:
2022-11-28 23:49:46 +08:00
GOPROXY=$(GOPROXY) go build -o $(ROOT_DIR)/$(PROJECTNAME)
2022-10-14 11:49:04 +08:00
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