add logging type output to makefile
This commit is contained in:
parent
0a1f0ab4e2
commit
fe7b6bbea9
1 changed files with 11 additions and 4 deletions
15
Makefile
15
Makefile
|
@ -2,24 +2,30 @@
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: lint.py lint.sh
|
lint: lint.py lint.sh
|
||||||
|
|
||||||
|
msg = $(call tprint,{a.b_magenta}==>{a.end}{a.bold} $(1){a.end})
|
||||||
|
|
||||||
## lint.py | lint python files
|
## lint.py | lint python files
|
||||||
.PHONY: lint.py
|
.PHONY: lint.py
|
||||||
lint.py:
|
lint.py: info
|
||||||
black $(shell find -type f -name "*.py")
|
$(call msg,Linting Python Files)
|
||||||
|
@black $(shell find -type f -name "*.py")
|
||||||
|
|
||||||
## lint.sh | lint shell files
|
## lint.sh | lint shell files
|
||||||
.PHONY: lint.sh
|
.PHONY: lint.sh
|
||||||
lint.sh:
|
lint.sh:
|
||||||
shfmt -s -w $(shell shfmt -f .)
|
$(call msg,Linting Shell Files)
|
||||||
|
@shfmt -s -w $(shell shfmt -f .)
|
||||||
|
|
||||||
## db, d-build | build docker image
|
## db, d-build | build docker image
|
||||||
.PHONY: db d-build
|
.PHONY: db d-build
|
||||||
db d-build:
|
db d-build:
|
||||||
docker build -f docker/Dockerfile -t dots .
|
$(call msg,Building Docker Image)
|
||||||
|
@docker build -f docker/Dockerfile -t dots .
|
||||||
|
|
||||||
## dr, d-run | run docker image
|
## dr, d-run | run docker image
|
||||||
.PHONY: dr d-run
|
.PHONY: dr d-run
|
||||||
dr d-run:
|
dr d-run:
|
||||||
|
$(call msg,Running Docker Image)
|
||||||
docker run --rm -it dots
|
docker run --rm -it dots
|
||||||
|
|
||||||
.PHONY: dr-keep
|
.PHONY: dr-keep
|
||||||
|
@ -29,5 +35,6 @@ dr-keep:
|
||||||
.DEFAULT_GOAL = help
|
.DEFAULT_GOAL = help
|
||||||
GOAL_COLOR = b_magenta
|
GOAL_COLOR = b_magenta
|
||||||
HELP_SEP = ->>
|
HELP_SEP = ->>
|
||||||
|
USAGE = {a.italic}{a.b_cyan}Best Dots Around{a.end}\n
|
||||||
-include .task.mk
|
-include .task.mk
|
||||||
$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/main/task.mk -o .task.mk)
|
$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/main/task.mk -o .task.mk)
|
||||||
|
|
Loading…
Reference in a new issue