feat: improved Makefile

This commit is contained in:
Ward Truyen
2025-12-08 21:56:28 +01:00
parent 6a541438ee
commit 60b80e0051

View File

@@ -8,21 +8,25 @@ print-help :
@echo -e "Use 'make instal-config' to only copy the configuration files" @echo -e "Use 'make instal-config' to only copy the configuration files"
@echo -e "Use 'make instal-packaged' to instal packages: zsh, easy-zsh-config, oh-my-posh" @echo -e "Use 'make instal-packaged' to instal packages: zsh, easy-zsh-config, oh-my-posh"
@echo -e "Use 'make code' to get configuration-code from your config to this project" @echo -e "Use 'make code' to get configuration-code from your config to this project"
@echo -e "ConfigPath=$(NVIM_CONFIG)"
instal : instal-packages, instal-config instal : instal-packages, instal-config
instal-config : instal-bash-config :
@echo -e "Installing to $(NVIM_CONFIG)" @echo -e "Installing bash config to $$HOME"
cp ./.zshrc ~/
cp ./.bashrc ~/ cp ./.bashrc ~/
instal-zsh-config :
@echo -e "Installing zsh config to $$HOME"
cp ./.zshrc ~/
instal-packages : instal-packages :
sudo pacman -S --needed zsh #zsh shell environment sudo pacman -S --needed zsh #zsh shell environment
yay -S --needed easy-zsh-config #zsh suggestion/command-completion and syntax higlighting # yay -S --needed easy-zsh-config #zsh suggestion/command-completion and syntax higlighting
yay -S --needed oh-my-posh #zsh theme provider
code : code-bash :
@echo -e "Getting code from $(NVIM_CONFIG)" @echo -e "Getting bash config from $$HOME"
cp ~/.zshrc ./
cp ~/.bashrc ./ cp ~/.bashrc ./
code-zsh :
@echo -e "Getting zsh config from $$HOME"
cp ~/.zshrc ./