aboutsummaryrefslogblamecommitdiffstats
path: root/rust/Makefile
blob: cc81345e028a49ead0c6eb6510f4be048c0f57e0 (plain) (tree)
1
2
       
                    


















                                                                        
.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