aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
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/.