dotfiles/Makefile

33 lines
703 B
Makefile
Raw Normal View History

2022-08-01 16:34:13 -05:00
.PHONY: lint lint.py lint.sh
2022-09-02 16:05:16 -05:00
## lint | lint.*
2022-08-01 16:34:13 -05:00
lint: lint.py lint.sh
2022-09-02 16:05:16 -05:00
## lint.python | lint python files
2022-08-01 16:34:13 -05:00
lint.python:
black $(shell find -type f -name "*.py")
2022-09-02 16:05:16 -05:00
## lint.sh | lint shell files
2022-08-01 16:34:13 -05:00
lint.sh:
shfmt -s -w $(shell shfmt -f .)
2022-09-02 16:05:16 -05:00
.PHONY: $(addprefix d-,b r build run)
## db, d-build | build docker image
db d-build:
docker build -f docker/Dockerfile -t dots .
## dr, d-run | run docker image
dr d-run:
docker run --rm -it dots
.PHONY: dr-keep
dr-keep:
docker run -it dots
2022-09-05 23:49:15 -05:00
.DEFAULT_GOAL = help
GOAL_COLOR = b_magenta
HELP_SEP = ->>
2022-09-02 16:05:16 -05:00
-include .task.mk
2022-09-05 18:44:51 -05:00
$(if $(filter help,$(MAKECMDGOALS)),.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v22.9.5/task.mk -o .task.mk)