-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (47 loc) · 2.07 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
all: link build secrets done
create_dirs:
xdg-user-dirs-update
mkdir -p ~/.local/share/themes ~/.local/share/abook ~/projects ~/Downloads/git ~/Pictures/Webcam ~/Pictures/Screenshots
link: create_dirs
ln -sf $(realpath config)/* ~/.config/
ln -sf $(realpath bin)/* /usr/local/bin/
ln -sf $(realpath gnupg)/* ~/.gnupg/
ln -sf $(realpath share/applications)/* ~/.local/share/applications
ln -sf $(realpath share/themes)/* ~/.local/share/themes
clean:
find -L "$HOME" -maxdepth 1 -type l -delete
build: /usr/local/bin/dwm /usr/local/bin/st /usr/local/bin/dmenu /usr/local/bin/slock
~/.config/dwm:
git clone https://codeberg.org/unrealapex/dwm ~/.config/dwm
~/.config/dwm/dwm: $(wildcard ~/.config/dwm/*.h) $(wildcard ~/.config/dwm/*.c) | ~/.config/dwm
$(MAKE) -C ~/.config/dwm install
/usr/local/bin/dwm: ~/.config/dwm/dwm
$(MAKE) -C ~/.config/dwm clean install
dwm: /usr/local/bin/dwm
~/.config/st:
git clone https://codeberg.org/unrealapex/st ~/.config/st
~/.config/st/st: $(wildcard ~/.config/st/*.h) $(wildcard ~/.config/st/*.c) | ~/.config/st
$(MAKE) -C ~/.config/st install
/usr/local/bin/st: ~/.config/st/st
$(MAKE) -C ~/.config/st clean install
st: /usr/local/bin/st
~/.config/dmenu:
git clone https://codeberg.org/unrealapex/dmenu ~/.config/dmenu
~/.config/dmenu/dmenu: $(wildcard ~/.config/dmenu/*.h) $(wildcard ~/.config/dmenu/*.c) | ~/.config/dmenu
$(MAKE) -C ~/.config/dmenu install
/usr/local/bin/dmenu: ~/.config/dmenu/dmenu
$(MAKE) -C ~/.config/dmenu clean install
dmenu: /usr/local/bin/dmenu
~/.config/slock:
git clone https://codeberg.org/unrealapex/slock ~/.config/slock
~/.config/slock/slock: $(wildcard ~/.config/slock/*.h) $(wildcard ~/.config/slock/*.c) | ~/.config/slock
$(MAKE) -C ~/.config/slock install
/usr/local/bin/slock: ~/.config/slock/slock
$(MAKE) -C ~/.config/slock clean install
slock: /usr/local/bin/slock
secrets: ~/.config/git/config.local
~/.config/git/config.local:
cp -n ~/dotfiles/secrets/git.local ~/.config/git/config.local
done:
@echo "Makefile targets completed!"
.PHONY: all create_dirs link clean build dwm st dmenu slock done