Files
dotfiles/Makefile

42 lines
717 B
Makefile
Raw Normal View History

ansible_run = ansible-playbook --inventory localhost, --diff ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
2017-09-02 19:48:01 +02:00
2022-06-30 06:38:05 +02:00
.PHONY: all
2022-07-01 20:03:36 +02:00
all:
2022-06-30 06:38:05 +02:00
$(ansible_run)
2022-05-02 20:16:22 +02:00
.PHONY: config
2022-07-01 20:03:36 +02:00
config:
$(ansible_run) --skip-tags system-update
2022-05-02 20:20:24 +02:00
.PHONY: system-update
2022-07-01 20:03:36 +02:00
system-update:
2022-05-02 20:20:24 +02:00
$(ansible_run) --tags system-update
2020-10-05 22:00:36 +02:00
.PHONY: reboot
reboot:
sudo reboot
.PHONY: poweroff
poweroff:
sudo poweroff
.PHONY: weekend
weekend: | update poweroff
.PHONY: packages
2022-07-01 20:03:36 +02:00
packages:
$(ansible_run) --tags packages
.PHONY: dotfiles
2022-07-01 20:03:36 +02:00
dotfiles:
$(ansible_run) --tags dotfiles
2018-02-05 20:14:02 +01:00
2020-12-08 23:41:35 +01:00
.PHONY: test
test:
./test-in-docker.sh
2024-11-10 16:08:21 +01:00
.PHONY: fmt
fmt:
git ls-files -z '*.md' | xargs -0 prettier --print-width 80 --prose-wrap always --write
git ls-files -z '*.toml' | xargs -0 taplo format