etc~ scripts and random things |
| git clone https://github.com/djnnvx/etc.git |
| log | files | refs | archive |
Makefile (496B)
1 TARGET = mdb-ls 2 SRC = main.go 3 4 .PHONY: all 5 all: compile 6 7 .PHONY: help 8 help: 9 @echo "\033[34m => targets:\033[0m" 10 @perl -nle'print $& if m{^[a-zA-Z_-\d]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}' 11 12 .PHONY: compile 13 compile: ## compile the project 14 @go build -o $(TARGET) $(SRC) 15 16 .PHONY: clean 17 clean: ## cleans up the project 18 rm -f $(TARGET) 19 20 .PHONY: tidy 21 tidy: ## runs tidy and formatting 22 @go mod tidy 23 @gofmt -s -w .