-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (25 loc) · 963 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# include all prerequisites
include scripts/make/*.Mak
################################################################################
##@ GENERIC
################################################################################
help: .bin-validator ## Show available commands
@echo ""
@echo "Golang + EJS + Tailwind + HTMX - Copyright (c) $(shell date +"%Y") Devetek Tech. https://devetek.com."
@echo ""
@echo ""
@gawk 'function fix_value(value, str) { \
padding=sprintf("%50s",""); \
ret=gensub("([^ ]+)", "\\1"padding"\n ", "g", " "value); \
ret=gensub("(^|\n)(.{53}) *", "\\1\\2\033[0m"str" \033[36m", "g", ret); \
ret=substr(ret, 3, length(ret)-16-length(str)); \
return ret; \
} \
BEGIN { \
FS = ":.*##"; \
printf "Use: make \033[36m<target>\033[0m\n"; \
} /^\$$?\(?[a-zA-Z0-9_-]+\)?:.*?##/ { \
printf " \033[36m%-50s\033[0m %s\n", $$1, $$2 \
} /^##@/ { \
printf "\n\033[1m%s\033[0m\n", substr($$0, 5) \
}' $(MAKEFILE_LIST)