From ae7a9bd8b223ef694150b24f34fe48015f10fbb9 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sat, 3 Sep 2022 13:14:48 +0300 Subject: introduce makefile --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile 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/. -- cgit v1.2.3-18-g5258