adds update-target to makefile

This commit is contained in:
xesc 2024-01-20 13:34:34 +01:00
parent 451d1e521a
commit 346bb00c59

View file

@ -1,4 +1,4 @@
.PHONY: shell zsh tmux nvim foot sway swaylock mako tofi wlogout ncspot waybar .PHONY: shell zsh tmux nvim foot sway swaylock mako tofi wlogout ncspot waybar setup update install
help: help:
@echo "\nWelcome to my configs, feel free to use and modify them as you like! \n\nTo install all of them to your system, just '$$ make install'.\nIf you just want some of them, use '$$ make <directory_name>' for a specific application.\nFor a dry-run of any of the targets, just prepend '-dry' to the targets name.\nNote: This management relies on GNU Stow, so to work properly, please ensure you have 'stow' installed...\n\nYou don't want to use a config anymore? Prepend '-uninstall' to any config installed via the 'install'-command from earlier.\n\nTo much stuff you don't need?\n\t\tCheck out 'https://git.xesc.de/xesc'\nfor the individual repos of the applicatons.\n" @echo "\nWelcome to my configs, feel free to use and modify them as you like! \n\nTo install all of them to your system, just '$$ make install'.\nIf you just want some of them, use '$$ make <directory_name>' for a specific application.\nFor a dry-run of any of the targets, just prepend '-dry' to the targets name.\nNote: This management relies on GNU Stow, so to work properly, please ensure you have 'stow' installed...\n\nYou don't want to use a config anymore? Prepend '-uninstall' to any config installed via the 'install'-command from earlier.\n\nTo much stuff you don't need?\n\t\tCheck out 'https://git.xesc.de/xesc'\nfor the individual repos of the applicatons.\n"
@ -8,6 +8,10 @@ install: setup shell zsh tmux nvim foot sway swaylock mako tofi wlogout ncspot w
setup: setup:
git submodule update --init git submodule update --init
update:
git pull
git submodule update --remote
shell: shell:
stow -v -t /home/"$$USER"/ shell stow -v -t /home/"$$USER"/ shell
ln -s /home/"$$USER"/.config/shell/profile /home/"$$USER"/.zprofile ln -s /home/"$$USER"/.config/shell/profile /home/"$$USER"/.zprofile