Merge pull request #92 from Aaahh/patch-7

Check SHADERDIR exist
This commit is contained in:
Levi Webb
2019-01-01 12:46:06 -08:00
committed by GitHub

View File

@@ -39,6 +39,9 @@ ifeq ($(INSTALL),unix)
ifndef SHADERDIR ifndef SHADERDIR
ifdef XDG_CONFIG_DIRS ifdef XDG_CONFIG_DIRS
SHADERDIR = /$(firstword $(subst :, ,$(XDG_CONFIG_DIRS)))/glava/ SHADERDIR = /$(firstword $(subst :, ,$(XDG_CONFIG_DIRS)))/glava/
ifeq ($(wildcard $(SHADERDIR)/..),)
SHADERDIR = /etc/xdg/glava/
endif
else else
SHADERDIR = /etc/xdg/glava/ SHADERDIR = /etc/xdg/glava/
endif endif