dotfiles/Makefile

37 lines
894 B
Makefile
Raw Normal View History

2022-10-06 10:53:31 -05:00
msg = $(if tprint,$(call tprint,{a.b_magenta}==>{a.end}{a.bold} $(1){a.end}),@echo '==> $(1)')
2022-09-08 12:53:55 -05:00
2023-01-24 12:19:34 -06:00
lint: ## lint python files
2022-09-08 12:53:55 -05:00
$(call msg,Linting Python Files)
@black $(shell find -type f -name "*.py")
2022-09-02 16:05:16 -05:00
2023-01-21 14:27:20 -06:00
completions: ## generate completion scripts
2022-10-06 10:53:31 -05:00
$(call msg,Generating Completions)
@./lib/completions/update.sh
2023-01-21 14:27:20 -06:00
fzf: lib/.fzf/completion.zsh lib/.fzf/key-bindings.zsh ## update fzf shell scripts
2022-12-09 17:12:04 -06:00
2023-01-21 14:27:20 -06:00
# update fzf shell scripts
2022-12-09 17:12:04 -06:00
lib/.fzf/%.zsh: FORCE
wget -O $@ \
https://raw.githubusercontent.com/junegunn/fzf/master/shell/$*.zsh
2023-01-21 14:27:20 -06:00
db d-build: ## build docker image
2022-09-08 12:53:55 -05:00
$(call msg,Building Docker Image)
2022-12-09 14:25:06 -06:00
@DOCKER_BUILDKIT=1 docker build \
--secret id=GITHUB_TOKEN \
2022-12-09 17:12:04 -06:00
--progress=plain \
2022-12-09 14:25:06 -06:00
-f docker/Dockerfile \
-t dots .
2022-09-02 16:05:16 -05:00
2023-01-21 14:27:20 -06:00
dr d-run: ## run docker image
2022-09-08 12:53:55 -05:00
$(call msg,Running Docker Image)
2022-09-02 16:05:16 -05:00
docker run --rm -it dots
dr-keep:
docker run -it dots
2022-12-09 17:12:04 -06:00
FORCE:
2022-09-05 23:49:15 -05:00
.DEFAULT_GOAL = help
2023-01-24 16:14:00 -06:00
-include .task.cfg.mk