]> rtime.felk.cvut.cz Git - edu/xsl.git/commitdiff
Fixed when called from symlinked directory master
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 4 Nov 2009 08:02:13 +0000 (09:02 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 4 Nov 2009 08:02:13 +0000 (09:02 +0100)
Makefile

index 4fec7fd930ece4a9b9b52f9cad879754d351fd8d..cc75c19f36e88cb277148654646017c1a5e934b4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ endif
 export BASEDIR
 
 # RELATIVEDIR: relative path from BASEDIR to the current directory
-RELATIVEDIR=$(patsubst /%,%,$(patsubst $(BASEDIR)%,%,$(shell pwd)))
+RELATIVEDIR=$(patsubst /%,%,$(patsubst $(BASEDIR)%,%,$(shell pwd -L)))
 
 # BACK_TO_BASE: relative path from the current directory to BASEDIR
 BACK_TO_BASE:=$(shell echo $(RELATIVEDIR)|sed -e 's/[^/]\+/../g')