-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.common
28 lines (26 loc) · 1.13 KB
/
Makefile.common
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
28
# ┈┈┈┈▕▔╱▔▔▔━▁
# ┈┈┈▕▔╱╱╱👁┈╲▂▔▔╲
# ┈┈▕▔╱╱╱╱💧▂▂▂▂▂▂▏
# ┈▕▔╱▕▕╱╱╱┈▽▽▽▽▽
# ▕▔╱┊┈╲╲╲╲▂△△△△
# ▔╱┊┈╱▕╲▂▂▂▂▂▂╱
# ╱┊┈╱┉▕┉┋╲┈
.DEFAULT_GOAL := help
MKCOM_LOC = https://raw.githubusercontent.com/geekodour/t/main/Makefile.common
TEMPLATE_PLACEHOLDER = bake
.PHONY: update-makefile-common # Update Makefile.common with the latest version of it
update-makefile-common:
wget -O Makefile.common.latest ${MKCOM_LOC}
mv Makefile.common.latest Makefile.common
.PHONY: show-template-placeholder # show all the file content and filenames w template placeholder
show-template-placeholder:
@echo "File contents:"
@rg -g "!.venv" -g "!.git" -g "!vendor" -uu ${TEMPLATE_PLACEHOLDER}
@echo "Files:"
@fd ${TEMPLATE_PLACEHOLDER}
.PHONY: help # Generate list of targets with descriptions
help:
@echo "Target descriptions"
@echo "NOTE: Targets with no description are not listed"
@echo
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1;;;\2/' | column -t -s ";;;"