aboutsummaryrefslogtreecommitdiffstats
path: root/caja/Makefile
blob: 3b36437513d8c25458588fc99ec4e79cb1c1c233 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.POSIX:

install:
	../check-installed-shebang c
	mkdir -p -- ~/.local/bin
	test ! -e ~/.local/bin/c || test -L ~/.local/bin/c
	if test -e "c-$$(hostname)"; then \
		../check-in-path "$$(readlink -- "c-$$(hostname)")" && \
		ln -sf -- ~/.dotfiles/caja/"c-$$(hostname)" ~/.local/bin/c; \
	else \
		ln -sf -- ~/.dotfiles/caja/c ~/.local/bin/c; \
	fi

uninstall:
	+! ../check-installed caja
	+! ../check-installed caja-gtk2
	-unlink -- ~/.local/bin/c