aboutsummaryrefslogblamecommitdiffstats
path: root/java-runtime/Makefile
blob: 209867623e4595196ad865c9246892a2aad651df (plain) (tree)
1
2
3
4
5
6
7
8
9
       
                    






                                        
                                                  








                                                                                        
.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