-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 830 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONT: version
version: ## Print 'progen' version
progen --version
.PHONT: install
install: ## Install latest 'progen' version from github
@make install_v v="latest"
.PHONT: install_v
install_v: ## Install specific 'progen' version from github (example: make install_v v="v0.0.1")
go install github.com/kozmod/progen@$(v)
.PHONY: list
list: ## List all make targets
@${MAKE} -pRrn : -f $(MAKEFILE_LIST) 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | sort
.PHONY: cli.help
cli.help: ## Run cli with '-help' flag
progen -help
.PHONY: help
help: ## List all make targets with description
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'