-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 904 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: all clean test
.DEFAULT_GOAL := help
.PHONY: sync_ghostty
sync_ghostty: ## Sync the ghostty terminal configuration
cp -r $$HOME/.config/ghostty/ .config/ghostty/
.PHONY: sync_starship
sync_starship: ## Sync the Starship prompt configuration
cp -r $$HOME/.config/starship.toml .config/starship.toml
.PHONY: sync_zsh
sync_zsh: ## Sync the ZSH shell configuration
cp $$HOME/.zshrc .zshrc
cp -r $$HOME/.config/zsh/ .config/zsh/
help:
@printf "Targets\n"
@(grep -h -E '^[0-9a-zA-Z_.-]+:.*?## .*$$' $(MAKEFILE_LIST) || true) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}'
@printf "\nDefault target\n"
@printf "\033[36m%s\033[0m" $(.DEFAULT_GOAL)
@printf "\n\nMake Variables\n"
@(grep -h -E '^[0-9a-zA-Z_.-]+\s[:?]?=.*? ## .*$$' $(MAKEFILE_LIST) || true) | sort | awk 'BEGIN {FS = "[:?]?=.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'