From fdef15584b742c9d91cb4dc930ffdd41b3cb8c22 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 4 Nov 2009 09:02:13 +0100 Subject: [PATCH] Fixed when called from symlinked directory --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.39.2