Skip to content

Commit

Permalink
chore: add phony targets
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed May 16, 2024
1 parent 4ac7152 commit 2d85433
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
IMAGE_NAME=dotfiles-debug
DOCKERFILE_DEBUG=Dockerfile

.PHONY: debug
debug:
docker build -f $(DOCKERFILE_DEBUG) -t $(IMAGE_NAME) .
docker run -it --rm $(IMAGE_NAME) /bin/bash -c "\
Expand All @@ -10,15 +11,23 @@ debug:
~/bin/chezmoi apply --verbose --force && \
zsh"

create-install-deps-script:
.PHONY: gen-install-script
gen-install-script:
chezmoi execute-template < ~/.local/share/chezmoi/scripts/run_once_before_install-deps.sh.tmpl > ./scripts/install-deps.sh
chmod +x ./scripts/install-deps.sh

.PHONY: lint
lint:
pre-commit run -a

.PHONY: chezmoidata-exclude
chezmoidata-exclude:
git update-index --skip-worktree .chezmoidata.yaml

.PHONY: chezmoidata-include
chezmoidata-include:
git update-index --no-skip-worktree .chezmoidata.yaml

.PHONY: append-chezmoi-config
append-chezmoi-config:
cat config/chezmoi.toml >> ~/.config/chezmoi/chezmoi.toml

0 comments on commit 2d85433

Please sign in to comment.