aboutsummaryrefslogblamecommitdiffstats
path: root/rust/Makefile
blob: d58e2079dfa37ded0dc82cb18b15bd3584834ac5 (plain) (tree)



















                                                                        
.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