aboutsummaryrefslogblamecommitdiffstats
path: root/java-runtime/Makefile
blob: 9d4947bf06debc9001648508ff7f77f7cca13760 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                        
.POSIX:

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