Makefile: Cosmetic changes
This commit is contained in:
parent
ff93e89401
commit
d14c6cc014
68
Makefile
68
Makefile
@ -10,7 +10,7 @@ HOMEDIR = ${HOME}
|
|||||||
# This will output the help for each task
|
# This will output the help for each task
|
||||||
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
||||||
help: ## This help
|
help: ## This help
|
||||||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[1;1;36m%-30s\033[1;0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||||
|
|
||||||
all: git-fetch git-secrets-reveal deploy-macos ## Update repo, decrypt secrets and run deploy-macos
|
all: git-fetch git-secrets-reveal deploy-macos ## Update repo, decrypt secrets and run deploy-macos
|
||||||
|
|
||||||
@ -23,96 +23,96 @@ deploy-workstation: deploy-base deploy-alacritty deploy-espanso deploy-vscodium
|
|||||||
deploy-macos: deploy-workstation deploy-bitbar deploy-duti deploy-skhd deploy-yabai deploy-brewfile ## Deploy macOS specific config files (inherits deploy-workstation)
|
deploy-macos: deploy-workstation deploy-bitbar deploy-duti deploy-skhd deploy-yabai deploy-brewfile ## Deploy macOS specific config files (inherits deploy-workstation)
|
||||||
|
|
||||||
gen-vscodium-plugin-list: ## Update the list of VSCodium plugins
|
gen-vscodium-plugin-list: ## Update the list of VSCodium plugins
|
||||||
@echo "\033[32m>>>\033[0m Updating the list of VSCodium plugins at .config/VSCodium/UserUser/extensions.list"
|
@echo "\033[1;32m>>>\033[1;0m Updating the list of VSCodium plugins at .config/VSCodium/UserUser/extensions.list"
|
||||||
@code --list-extensions > .config/VSCodium/UserUser/extensions.list
|
@code --list-extensions > .config/VSCodium/UserUser/extensions.list
|
||||||
|
|
||||||
git-secrets-hide: ## Hide secrets with git-secret
|
git-secrets-hide: ## Hide secrets with git-secret
|
||||||
@echo "\033[32m>>>\033[0m Encrypting secrets."
|
@echo "\033[1;32m>>>\033[1;0m Encrypting secrets."
|
||||||
@git secret hide
|
@git secret hide
|
||||||
@echo "\033[32m>>>\033[0m Creating commit."
|
@echo "\033[1;32m>>>\033[1;0m Creating commit."
|
||||||
@git add -A && git commit -m "Updated secrets."
|
@git add -A && git commit -m "Updated secrets."
|
||||||
|
|
||||||
git-secrets-reveal: ## Reveal secrets with git-secret
|
git-secrets-reveal: ## Reveal secrets with git-secret
|
||||||
@echo "\033[32m>>>\033[0m Decrypting secrets."
|
@echo "\033[1;32m>>>\033[1;0m Decrypting secrets."
|
||||||
@git secret reveal
|
@git secret reveal
|
||||||
@echo "\033[32m>>>\033[0m Remove encrypted files."
|
@echo "\033[1;32m>>>\033[1;0m Remove encrypted files."
|
||||||
@git secret clean
|
@git secret clean
|
||||||
|
|
||||||
git-fetch: ## Fetch changes from origin
|
git-fetch: ## Fetch changes from origin
|
||||||
@echo "\033[32m>>>\033[0m Fetching changes from origin."
|
@echo "\033[1;32m>>>\033[1;0m Fetching changes from origin."
|
||||||
@git fetch origin main
|
@git fetch origin main
|
||||||
|
|
||||||
git-push: ## Push changes to origin
|
git-push: ## Push changes to origin
|
||||||
@echo "\033[32m>>>\033[0m Pushing changes to origin."
|
@echo "\033[1;32m>>>\033[1;0m Pushing changes to origin."
|
||||||
@git push origin main
|
@git push origin main
|
||||||
|
|
||||||
git-update-submodules: ## Update all submodules
|
git-update-submodules: ## Update all submodules
|
||||||
@echo "\033[32m>>>\033[0m Updating git submodules."
|
@echo "\033[1;32m>>>\033[1;0m Updating git submodules."
|
||||||
@git submodule update --init --recursive && \
|
@git submodule update --init --recursive && \
|
||||||
git submodule foreach git pull --recurse-submodules origin
|
git submodule foreach git pull --recurse-submodules origin
|
||||||
|
|
||||||
brew-bundle: ## Install applications with brew bundle
|
brew-bundle: ## Install applications with brew bundle
|
||||||
@echo "\033[32m>>>\033[0m\033[0m Installing applications from .config/Brewfile"
|
@echo "\033[1;32m>>>\033[1;0m\033[1;0m Installing applications from .config/Brewfile"
|
||||||
@brew bundle --file .config/Brewfile || true
|
@brew bundle --file .config/Brewfile || true
|
||||||
|
|
||||||
brew-bundle-cleanup: ## Removew all appplications that are not listed in Brewfile
|
brew-bundle-cleanup: ## Removew all appplications that are not listed in Brewfile
|
||||||
@echo "\033[32m>>>\033[0m Removing applications that are not listed in .config/Brewfile"
|
@echo "\033[1;32m>>>\033[1;0m Removing applications that are not listed in .config/Brewfile"
|
||||||
@brew bundle cleanup --zap --force --file .config/Brewfile
|
@brew bundle cleanup --zap --force --file .config/Brewfile
|
||||||
|
|
||||||
deploy-alacritty: ## Deploy alacritty config
|
deploy-alacritty: ## Deploy alacritty config
|
||||||
@echo "\033[32m>>>\033[0m Deploy alacritty config to ${HOMEDIR}/.config/alacritty"
|
@echo "\033[1;32m>>>\033[1;0m Deploy alacritty config to ${HOMEDIR}/.config/alacritty"
|
||||||
@mkdir -p ~/.config/alacritty
|
@mkdir -p ~/.config/alacritty
|
||||||
@cp .config/alacritty/* ${HOMEDIR}/.config/alacritty
|
@cp .config/alacritty/* ${HOMEDIR}/.config/alacritty
|
||||||
|
|
||||||
deploy-bitbar: ## Deploy BitBar config
|
deploy-bitbar: ## Deploy BitBar config
|
||||||
@echo "\033[32m>>>\033[0m Deploy BitBar config to ${HOMEDIR}/.config/BitBar"
|
@echo "\033[1;32m>>>\033[1;0m Deploy BitBar config to ${HOMEDIR}/.config/BitBar"
|
||||||
@mkdir -p ${HOMEDIR}/.config/BitBar
|
@mkdir -p ${HOMEDIR}/.config/BitBar
|
||||||
@cp .config/BitBar/* ${HOMEDIR}/.config/BitBar
|
@cp .config/BitBar/* ${HOMEDIR}/.config/BitBar
|
||||||
@echo "\033[32m>>>\033[0m Setting BitBar plugin directory to ${HOMEDIR}/.config/BitBar/Enabled"
|
@echo "\033[1;32m>>>\033[1;0m Setting BitBar plugin directory to ${HOMEDIR}/.config/BitBar/Enabled"
|
||||||
@defaults write com.matryer.BitBar pluginsDirectory "${HOMEDIR}/.config/BitBar/Enabled"
|
@defaults write com.matryer.BitBar pluginsDirectory "${HOMEDIR}/.config/BitBar/Enabled"
|
||||||
@echo "\033[32m>>>\033[0m Enabeling BitBar plugins"
|
@echo "\033[1;32m>>>\033[1;0m Enabeling BitBar plugins"
|
||||||
@mkdir -p ${HOMEDIR}/.config/BitBar/Enabled
|
@mkdir -p ${HOMEDIR}/.config/BitBar/Enabled
|
||||||
@ln -sf ${HOMEDIR}/.config/BitBar/*.sh ${HOMEDIR}/.config/BitBar/Enabled
|
@ln -sf ${HOMEDIR}/.config/BitBar/*.sh ${HOMEDIR}/.config/BitBar/Enabled
|
||||||
|
|
||||||
deploy-duti: ## Deploy duti config
|
deploy-duti: ## Deploy duti config
|
||||||
@echo "\033[32m>>>\033[0m Deploy duti config to ${HOMEDIR}/.config/duti"
|
@echo "\033[1;32m>>>\033[1;0m Deploy duti config to ${HOMEDIR}/.config/duti"
|
||||||
@mkdir -p ${HOMEDIR}/.config/duti
|
@mkdir -p ${HOMEDIR}/.config/duti
|
||||||
@cp .config/duti/* ${HOMEDIR}/.config/duti
|
@cp .config/duti/* ${HOMEDIR}/.config/duti
|
||||||
@echo "\033[32m>>>\033[0m Processing duti config from ${HOMEDIR}/.config/duti"
|
@echo "\033[1;32m>>>\033[1;0m Processing duti config from ${HOMEDIR}/.config/duti"
|
||||||
@duti ${HOMEDIR}/.config/duti
|
@duti ${HOMEDIR}/.config/duti
|
||||||
|
|
||||||
deploy-espanso: ## Deploy espanso config
|
deploy-espanso: ## Deploy espanso config
|
||||||
@echo "\033[32m>>>\033[0m Deploy espanso config to ${HOMEDIR}/.config/espanso"
|
@echo "\033[1;32m>>>\033[1;0m Deploy espanso config to ${HOMEDIR}/.config/espanso"
|
||||||
@mkdir -p ${HOMEDIR}/.config/espanso/user
|
@mkdir -p ${HOMEDIR}/.config/espanso/user
|
||||||
@cp .config/espanso/*.yml ${HOMEDIR}/.config/espanso
|
@cp .config/espanso/*.yml ${HOMEDIR}/.config/espanso
|
||||||
-@cp .config/espanso/user/*.yml ${HOMEDIR}/.config/espanso/user
|
-@cp .config/espanso/user/*.yml ${HOMEDIR}/.config/espanso/user
|
||||||
@echo "\033[32m>>>\033[0m Enabeling espanso daemon"
|
@echo "\033[1;32m>>>\033[1;0m Enabeling espanso daemon"
|
||||||
@espanso register
|
@espanso register
|
||||||
|
|
||||||
deploy-htop: ## Deploy htop config
|
deploy-htop: ## Deploy htop config
|
||||||
@echo "\033[32m>>>\033[0m Deploy htop config to ${HOMEDIR}/.config/htop"
|
@echo "\033[1;32m>>>\033[1;0m Deploy htop config to ${HOMEDIR}/.config/htop"
|
||||||
@mkdir -p ${HOMEDIR}/.config/htop
|
@mkdir -p ${HOMEDIR}/.config/htop
|
||||||
@cp .config/htop/htoprc ${HOMEDIR}/.config/htop
|
@cp .config/htop/htoprc ${HOMEDIR}/.config/htop
|
||||||
|
|
||||||
deploy-readline: ## Deploy readliine config
|
deploy-readline: ## Deploy readliine config
|
||||||
@echo "\033[32m>>>\033[0m Deploy readline config to ${HOMEDIR}/.config/readline"
|
@echo "\033[1;32m>>>\033[1;0m Deploy readline config to ${HOMEDIR}/.config/readline"
|
||||||
@mkdir -p ${HOMEDIR}/.config/readline
|
@mkdir -p ${HOMEDIR}/.config/readline
|
||||||
@cp .config/readline/inputrc ${HOMEDIR}/.config/readline
|
@cp .config/readline/inputrc ${HOMEDIR}/.config/readline
|
||||||
|
|
||||||
deploy-skhd: ## Deploy skhd config
|
deploy-skhd: ## Deploy skhd config
|
||||||
@echo "\033[32m>>>\033[0m Deploy skhd config to ${HOMEDIR}/.config/skhd"
|
@echo "\033[1;32m>>>\033[1;0m Deploy skhd config to ${HOMEDIR}/.config/skhd"
|
||||||
@mkdir -p ${HOMEDIR}/.config/skhd
|
@mkdir -p ${HOMEDIR}/.config/skhd
|
||||||
@cp .config/skhd/skhdrc ${HOMEDIR}/.config/skhd
|
@cp .config/skhd/skhdrc ${HOMEDIR}/.config/skhd
|
||||||
@echo "\033[32m>>>\033[0m Enabeling skhd daemon"
|
@echo "\033[1;32m>>>\033[1;0m Enabeling skhd daemon"
|
||||||
@brew services start skhd
|
@brew services start skhd
|
||||||
|
|
||||||
deploy-tmux: ## Deploy tmux config
|
deploy-tmux: ## Deploy tmux config
|
||||||
@echo "\033[32m>>>\033[0m Deploy tmux config to ${HOMEDIR}/.config/tmux"
|
@echo "\033[1;32m>>>\033[1;0m Deploy tmux config to ${HOMEDIR}/.config/tmux"
|
||||||
@mkdir -p ${HOMEDIR}/.config/tmux
|
@mkdir -p ${HOMEDIR}/.config/tmux
|
||||||
@cp .config/tmux/*.conf ${HOMEDIR}/.config/tmux
|
@cp .config/tmux/*.conf ${HOMEDIR}/.config/tmux
|
||||||
|
|
||||||
deploy-vim: ## Deploy vim config
|
deploy-vim: ## Deploy vim config
|
||||||
@echo "\033[32m>>>\033[0m Deploy vim config to ${HOMEDIR}/.config/vim"
|
@echo "\033[1;32m>>>\033[1;0m Deploy vim config to ${HOMEDIR}/.config/vim"
|
||||||
@mkdir -p ${HOMEDIR}/.config/vim
|
@mkdir -p ${HOMEDIR}/.config/vim
|
||||||
@mkdir -p ${HOMEDIR}/.config/vim/autoload
|
@mkdir -p ${HOMEDIR}/.config/vim/autoload
|
||||||
@mkdir -p ${HOMEDIR}/.config/vim/backup
|
@mkdir -p ${HOMEDIR}/.config/vim/backup
|
||||||
@ -123,27 +123,27 @@ deploy-vim: ## Deploy vim config
|
|||||||
@cp .config/vim/vimrc ${HOMEDIR}/.config/vim
|
@cp .config/vim/vimrc ${HOMEDIR}/.config/vim
|
||||||
|
|
||||||
deploy-vscodium: ## Deploy VSCodium config
|
deploy-vscodium: ## Deploy VSCodium config
|
||||||
@echo "\033[32m>>>\033[0m Deploy VSCodium config to ${HOMEDIR}/.config/VSCodium/User"
|
@echo "\033[1;32m>>>\033[1;0m Deploy VSCodium config to ${HOMEDIR}/.config/VSCodium/User"
|
||||||
@mkdir -p ${HOMEDIR}/.config/VSCodium/User
|
@mkdir -p ${HOMEDIR}/.config/VSCodium/User
|
||||||
@cp .config/VSCodium/User/*.json ${HOMEDIR}/.config/VSCodium/User
|
@cp .config/VSCodium/User/*.json ${HOMEDIR}/.config/VSCodium/User
|
||||||
|
|
||||||
@echo "\033[32m>>>\033[0m Install VSCodium extensions from ${HOMEDIR}/.config/VSCodium/User/extensions.list"
|
@echo "\033[1;32m>>>\033[1;0m Install VSCodium extensions from ${HOMEDIR}/.config/VSCodium/User/extensions.list"
|
||||||
@cat .config/VSCodium/User/extensions.list | xargs -L 1 code --install-extension
|
@cat .config/VSCodium/User/extensions.list | xargs -L 1 code --install-extension
|
||||||
|
|
||||||
deploy-yabai: ## Deploy yabai config
|
deploy-yabai: ## Deploy yabai config
|
||||||
@echo "\033[32m>>>\033[0m Deploy yabai config to ${HOMEDIR}/.config/yabai"
|
@echo "\033[1;32m>>>\033[1;0m Deploy yabai config to ${HOMEDIR}/.config/yabai"
|
||||||
@mkdir -p ${HOMEDIR}/.config/yabai
|
@mkdir -p ${HOMEDIR}/.config/yabai
|
||||||
@cp .config/yabai/yabairc ${HOMEDIR}/.config/yabai
|
@cp .config/yabai/yabairc ${HOMEDIR}/.config/yabai
|
||||||
@echo "\033[32m>>>\033[0m Enabeling yabai daemon"
|
@echo "\033[1;32m>>>\033[1;0m Enabeling yabai daemon"
|
||||||
@brew services start yabai
|
@brew services start yabai
|
||||||
|
|
||||||
deploy-youtubedl: ## Deploy youtube-dl config
|
deploy-youtubedl: ## Deploy youtube-dl config
|
||||||
@echo "\033[32m>>>\033[0m Deploy youtube-dl config to ${HOMEDIR}/.config/youtube-dl"
|
@echo "\033[1;32m>>>\033[1;0m Deploy youtube-dl config to ${HOMEDIR}/.config/youtube-dl"
|
||||||
@mkdir -p ${HOMEDIR}/.config/youtube-dl
|
@mkdir -p ${HOMEDIR}/.config/youtube-dl
|
||||||
@cp .config/youtube-dl/config ${HOMEDIR}/.config/youtube-dl
|
@cp .config/youtube-dl/config ${HOMEDIR}/.config/youtube-dl
|
||||||
|
|
||||||
deploy-zsh: ## Deploy zsh config
|
deploy-zsh: ## Deploy zsh config
|
||||||
@echo "\033[32m>>>\033[0m Deploy zsh config to ${HOMEDIR}/.config/zsh"
|
@echo "\033[1;32m>>>\033[1;0m Deploy zsh config to ${HOMEDIR}/.config/zsh"
|
||||||
@mkdir -p ${HOMEDIR}/.config/zsh
|
@mkdir -p ${HOMEDIR}/.config/zsh
|
||||||
@mkdir -p ${HOMEDIR}/.config/zsh/functions
|
@mkdir -p ${HOMEDIR}/.config/zsh/functions
|
||||||
@mkdir -p ${HOMEDIR}/.config/zsh/lib
|
@mkdir -p ${HOMEDIR}/.config/zsh/lib
|
||||||
@ -153,17 +153,17 @@ deploy-zsh: ## Deploy zsh config
|
|||||||
@cp .config/zsh/lib/*.zsh ${HOMEDIR}/.config/zsh/lib
|
@cp .config/zsh/lib/*.zsh ${HOMEDIR}/.config/zsh/lib
|
||||||
|
|
||||||
deploy-brewfile: ## Deploy Brewfile
|
deploy-brewfile: ## Deploy Brewfile
|
||||||
@echo "\033[32m>>>\033[0m Deploy Brewfile to ${HOMEDIR}/.config/"
|
@echo "\033[1;32m>>>\033[1;0m Deploy Brewfile to ${HOMEDIR}/.config/"
|
||||||
@mkdir -p ${HOMEDIR}/.config
|
@mkdir -p ${HOMEDIR}/.config
|
||||||
@cp .config/Brewfile ${HOMEDIR}/.config/
|
@cp .config/Brewfile ${HOMEDIR}/.config/
|
||||||
|
|
||||||
deploy-ssh: ## Deploy SSH config
|
deploy-ssh: ## Deploy SSH config
|
||||||
@echo "\033[32m>>>\033[0m Deploy SSH config to ${HOMEDIR}/.ssh"
|
@echo "\033[1;32m>>>\033[1;0m Deploy SSH config to ${HOMEDIR}/.ssh"
|
||||||
@mkdir -p ${HOMEDIR}/.ssh/master
|
@mkdir -p ${HOMEDIR}/.ssh/master
|
||||||
@mkdir -p ${HOMEDIR}/.ssh/conf.d
|
@mkdir -p ${HOMEDIR}/.ssh/conf.d
|
||||||
@cp .ssh/config ${HOMEDIR}/.ssh/
|
@cp .ssh/config ${HOMEDIR}/.ssh/
|
||||||
-@cp .ssh/conf.d/*.conf ${HOMEDIR}/.ssh/conf.d
|
-@cp .ssh/conf.d/*.conf ${HOMEDIR}/.ssh/conf.d
|
||||||
|
|
||||||
deploy-hushlogin: ## Deploy .hushlogin
|
deploy-hushlogin: ## Deploy .hushlogin
|
||||||
@echo "\033[32m>>>\033[0m Deploy .hushlogin to ${HOMEDIR}"
|
@echo "\033[1;32m>>>\033[1;0m Deploy .hushlogin to ${HOMEDIR}"
|
||||||
@cp .hushlogin ${HOMEDIR}/
|
@cp .hushlogin ${HOMEDIR}/
|
Loading…
Reference in New Issue
Block a user