]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/generic-vars.make
* Documentation/user/music-glossary.tely: add @omf tags
[lilypond.git] / stepmake / stepmake / generic-vars.make
index 2c8131046139f0ce0cd226b04cf222ce6da2f961..c5081c60e1f960665f16d961c24c8fd879868229 100644 (file)
@@ -9,7 +9,10 @@ DEPTH = $(depth)/$(package-depth)
 ##deprecated
 #topdir := $(abs-srcdir)
 #endif
-pwd := $(shell pwd)
+
+## `which pwd` is to prevent symlink resolving intelligence 
+pwd:=$(shell `which pwd`)
+current-relative-dir:=$(subst $(strip $(shell cd $(depth); `which pwd`)),,$(pwd))
 
 ifeq ($(srcdir),.)
 src-depth = $(depth)