aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-09-03 13:14:48 +0300
committerJoursoir <chat@joursoir.net>2022-09-03 13:14:48 +0300
commitae7a9bd8b223ef694150b24f34fe48015f10fbb9 (patch)
tree87f88762f86b30fe826ec257126b2e9957796c70 /Makefile
parent3181036d8fbfd689ebc8e9d1e104941819643288 (diff)
downloaddotfiles-ae7a9bd8b223ef694150b24f34fe48015f10fbb9.tar.gz
dotfiles-ae7a9bd8b223ef694150b24f34fe48015f10fbb9.tar.bz2
dotfiles-ae7a9bd8b223ef694150b24f34fe48015f10fbb9.zip
introduce makefile
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/.