aboutsummaryrefslogtreecommitdiffstats
path: root/java-runtime/Makefile
blob: 8376e5ea9d4f0e4918e9422ba463dc502a41adc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.POSIX:
include ../common.mk

install:
	mkdir -p -- ~/.var/cache/java
	-rm -rf -- ~/.java
	test ! -e ~/.java
	ln -s -- .var/cache/java ~/.java
	mkdir -p -- ~/.config/profile.d
	test ! d ~/.config/profile.d/java-runtime
	ln -sf -- ~/.dotfiles/java-runtime/user-profile ~/.config/profile.d/java-runtime

uninstall:
	-unlink -- ~/.config/profile.d/java-runtime
	-rmdir -- ~/.config/profile.d
	-rm -rf -- ~/.java
	-rm -rf -- ~/.var/cache/java

.PHONY: install uninstall