aboutsummaryrefslogtreecommitdiffstats
path: root/dmenu/Makefile
blob: 7183f396a346704c9bcb617c2c4de689c2892da0 (plain) (blame)
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
.POSIX:

install:
	../check-installed-shebang dmenu.gpp
	../check-installed-shebang ipa
	../check-installed-shebang unicode
	../check-installed-shebang plumb
	../check-in-path vis
	../check-installed general-preprocessor
	cd unicode.d && make
	gpp -s '%%' < dmenu.gpp > .dmenu
	chmod +x .dmenu
	../check-installed-shebang .dmenu
	mkdir -p -- ~/.local/bin
	test ! -e ~/.local/bin/dmenu || test -L ~/.local/bin/dmenu
	ln -sf -- ~/.dotfiles/dmenu/.dmenu ~/.local/bin/dmenu
	ln -sf -- ~/.dotfiles/dmenu/ipa ~/.local/bin/
	ln -sf -- ~/.dotfiles/dmenu/unicode ~/.local/bin/
	ln -sf -- ~/.dotfiles/dmenu/plumb ~/.local/bin/

uninstall:
	+! ../check-installed dmenu
	+! ../check-installed suckless-tools
	-unlink -- ~/.local/bin/dmenu
	-unlink -- ~/.local/bin/ipa
	-unlink -- ~/.local/bin/unicode
	-unlink -- ~/.local/bin/plumb
	-cd unicode.d && make reallyclean