aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f28210b689e0d32d21293575df39c2e9f1d819d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
MOVE = mv -i
COPY = cp -i

.PHONY: nop bash grub i3 polybar fonts

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/.

fonts:
	$(COPY) -r fonts ~/.local/share