.POSIX: include ../common.mk install: if test -L ~/.texlive; then \ test "$$(readlink -- ~/.texlive)" = .var/cache/texlive; \ else \ set -e; \ if test -d ~/.texlive; then \ test ! -d ~/.var/cache/texlive && \ mkdir -p -- ~/.var/cache && \ mv ~/.texlive ~/.var/cache/texlive; \ else \ mkdir -p -- ~/.var/cache/texlive; \ fi; \ ln -sf -- .var/cache/texlive ~/.texlive; \ fi uninstall: -rm -rf -- ~/.var/cache/texlive -rm -rf -- ~/.texlive .PHONY: install uninstall