aboutsummaryrefslogtreecommitdiffstats
path: root/texlive-bin/Makefile
blob: 18bac6526f9f4c55e1b3b81a267fb758d267c2f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.POSIX:

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:
	+! ../check-installed texlive-bin
	+! ../check-installed texlive-base
	-rm -rf -- ~/.var/cache/texlive
	-rm -rf -- ~/.texlive