-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (38 loc) · 1.62 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
clean:
rm -rvf ./build ./sources/{dmenu,st}/config.h
rm -rvf ./sources/st/boxdraw*
( cd sources/dmenu && make clean; git restore * )
( cd sources/st && make clean; git restore * )
install:
cp -vr build/. ~/
i3: ./build/.config
cp -vr ./i3/.config/i3 ./build/.config/
python3 replace.py ./i3/.config/i3/config > ./build/.config/i3/config
python3 replace.py ./i3/.Xresources > ./build/.Xresources
python3 replace.py ./i3/.config/i3/autostart.sh > ./build/.config/i3/autostart.sh
polybar: ./build/.config
cp -vr ./polybar/.config/polybar ./build/.config/
python3 replace.py ./polybar/.config/polybar/config.ini > ./build/.config/polybar/config.ini
$(CC) ./build/.config/polybar/info-speed.c -o ./build/.config/polybar/info-speed -lm
dunst: ./build/.config
cp -vr ./dunst/.config/dunst ./build/.config/
python3 replace.py ./dunst/.config/dunst/dunstrc > ./build/.config/dunst/dunstrc
bash: ./build/.config
cp -vr ./bash/. ./build/
nvim: ./build/.config
cp -vr ./nvim/.config/nvim ./build/.config
python3 ./vimcolors2gui.py ./nvim/.config/nvim/colors/madeline.term.vim > ./build/.config/nvim/colors/madeline.vim
build/.config:
mkdir -vp ./build/.config
dmenu:
rm -f sources/dmenu/config.h
( cd sources/dmenu && git restore * )
( cd sources/dmenu && git apply < ../../patches/dmenu.patch )
python3 replace.py sources/dmenu/config.def.h > sources/dmenu/config.h
( cd sources/dmenu && make clean all )
st:
rm -f sources/st/config.h
( cd sources/st && git restore * )
( cd sources/st && git apply < ../../patches/st.patch )
python3 replace.py sources/st/config.def.h > sources/st/config.h
( cd sources/st && make clean all )