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







                                        
                                                                                              


                                                                                        

                                          



                                                   
.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 ! -e ~/.config/profile.d/java-runtime || test -L ~/.config/profile.d/java-runtime
	ln -sf -- ~/.dotfiles/java-runtime/user-profile ~/.config/profile.d/java-runtime

uninstall:
	+! ../check-installed java-runtime
	+! ../check-installed java-common
	-unlink -- ~/.config/profile.d/java-runtime
	-rmdir -- ~/.config/profile.d
	-rm -rf -- ~/.java
	-rm -rf -- ~/.var/cache/java