diff options
author | Joursoir <chat@joursoir.net> | 2022-09-03 13:14:48 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-09-03 13:14:48 +0300 |
commit | ae7a9bd8b223ef694150b24f34fe48015f10fbb9 (patch) | |
tree | 87f88762f86b30fe826ec257126b2e9957796c70 | |
parent | 3181036d8fbfd689ebc8e9d1e104941819643288 (diff) | |
download | dotfiles-ae7a9bd8b223ef694150b24f34fe48015f10fbb9.tar.gz dotfiles-ae7a9bd8b223ef694150b24f34fe48015f10fbb9.tar.bz2 dotfiles-ae7a9bd8b223ef694150b24f34fe48015f10fbb9.zip |
introduce makefile
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..350a79b --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +MOVE = mv -i +COPY = cp -i + +.PHONY: nop bash grub i3 polybar + +nop: + @echo "Please, look over Makefile before executing any targets." + @echo "They can overwrite your script. Be careful!" + +bash: + $(MOVE) ~/.bashrc ~/.bashrc-old + $(COPY) .bashrc ~ + $(MOVE) ~/.bash_profile ~/.bash_profile-old + $(COPY) .bash_profile ~ + $(MOVE) ~/.bash_prompt ~/.bash_prompt-old + $(COPY) .bash_prompt ~ + $(MOVE) ~/.aliases ~/.aliases-old + $(COPY) .aliases ~ + +grub: + $(MOVE) /etc/default/grub /etc/default/grub-old + $(COPY) grub/default/grub /etc/default/grub + +i3: + $(MOVE) ~/.config/i3/config ~/.config/i3/config-old + $(COPY) dotconfig/i3/config ~/.config/i3/config + +polybar: + $(MOVE) ~/.config/polybar/* ~/.config/polybar-old/. + $(COPY) -r dotconfig/polybar ~/.config/. |