Files
shell-config/makefile
2026-05-11 14:52:42 +02:00

44 lines
1.2 KiB
Makefile

.PHONY: default help print-help
.PHONY: instal-bash-config instal-zsh-config instal-bash instal-zsh instal-all
.PHONY: getmycode code-bash code-zsh
default : print-help
help : print-help
install: instal
instal : instal-all
instal-bash: instal-bash-config
instal-zsh: instal-zsh-packages, instal-zsh-config
instal-all : instal-bash, instal-zsh
getmycode : code-bash, code-zsh
print-help :
@echo -e "Help!?!?"
@echo -e "Use 'make instal' to instal this config and required packages"
@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 getmycode' to get configuration-code from your config to this project"
instal-bash-config :
@echo -e "Installing bash config to $$HOME"
cp ./.bashrc ~/
cp ./.bash_profile ~/
cp ./.bash_config ~/
instal-zsh-config :
@echo -e "Installing zsh config to $$HOME"
cp ./.zshrc ~/
instal-zsh-packages :
sudo pacman -S --needed zsh #zsh shell environment
code-bash :
@echo -e "Getting bash config from $$HOME"
cp ~/.bashrc ./
cp ~/.bash_profile ./
cp ~/.bash_config ./
code-zsh :
@echo -e "Getting zsh config from $$HOME"
cp ~/.zshrc ./