-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (23 loc) · 998 Bytes
/
makefile
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
BIN=/usr/local/bin
PL=/tmp/_root/home/user0
.DEFAULT_GOAL := install
install:
chmod +x dotful
install dotful $(BIN)
uninstall:
rm $(BIN)/dotful
link:
ln -s $(PWD)/dotful ${HOME}/.local/bin/dotful
unlink:
rm ${HOME}/.local/bin/dotful
playground:
@if [ -d "$(PL)" ]; then printf "removing old dir\n" && rm -r "$(PL)"; fi
@mkdir -p $(PL)
@printf "creating dummy files within %s...\n\n" "$(PL)"
mkdir -p $(PL)/.dots $(PL)/.config $(PL)/.local/share
mkdir -p $(PL)/.config/gtk $(PL)/.config/vlc $(PL)/.config/nvim
mkdir -p $(PL)/.local/share/fonts $(PL)/.local/share/icons $(PL)/.local/share/sounds
touch $(PL)/.local/share/fonts/ter-123b $(PL)/.local/share/fonts/ter-235b $(PL)/.local/share/fonts/ter-284b
touch $(PL)/.profile $(PL)/.logout $(PL)/.inputrc $(PL)/.xinitrc $(PL)/.xresources $(PL)/.xserverrc $(PL)/.rc
@printf "\ngrab this alias to use dotful within the playground:\n"
@printf "alias dotful=\"dotful --source $(PL)/.dots --destination $(PL) --user-home $(PL)\"\n"