aboutsummaryrefslogtreecommitdiffstats
path: root/rust/Makefile
blob: cc81345e028a49ead0c6eb6510f4be048c0f57e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.POSIX:
include ../common.mk

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