From: Michal Sojka Date: Wed, 4 Nov 2009 08:02:13 +0000 (+0100) Subject: Fixed when called from symlinked directory X-Git-Url: https://rtime.felk.cvut.cz/gitweb/edu/xsl.git/commitdiff_plain/fdef15584b742c9d91cb4dc930ffdd41b3cb8c22 Fixed when called from symlinked directory --- diff --git a/Makefile b/Makefile index 4fec7fd..cc75c19 100644 --- 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')