blob: d58e2079dfa37ded0dc82cb18b15bd3584834ac5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
.POSIX:
install:
if test -d ~/.cargo; then \
test ! -d ~/.var/lib/cargo && \
mkdir -p -- ~/.var/lib && \
mv ~/.cargo ~/.var/lib/cargo; \
else \
mkdir -p -- ~/.var/lib; \
fi
test ! -d ~/.config/profile.d/rust
ln -sf -- ~/.dotfiles/rust/user-profile ~/.config/profile.d/rust
uninstall:
-rm -rf -- ~/.var/cache/cargo
-rm -rf -- ~/.cargo
-unlink -- ~/.config/profile.d/rust
-rmdir -- ~/.config/profile.d
.PHONY: install uninstall
|