]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/generic-vars.make
* stepmake/stepmake/compile-vars.make:
[lilypond.git] / stepmake / stepmake / generic-vars.make
index 7b457f3c5a838ec94d8aa0775ada4a97c84dab85..c47a444f336735aeb45679b48b62f8a2abf9bdc5 100644 (file)
@@ -11,13 +11,11 @@ topdir := $(abs-srcdir)
 endif
 pwd := $(shell pwd)
 
-# $(depth) is deprecated, for most cases you'll want $(src-depth)
-#
-# Well, on second thought.
-# It can do no harm, but using src-depth iso depth is only necessary
-# for broken rules that do
-#    cd $(outdir) && foo  $(depth) ...
-src-depth = $(depth)/$(srcdir)
+ifeq ($(srcdir),.)
+src-depth = $(depth)
+else
+src-depth = $(srcdir)
+endif
 
 # derived names
 ifeq ($(distdir),)
@@ -26,11 +24,6 @@ ifeq ($(distdir),)
 endif
 distname = $(package)-$(TOPLEVEL_VERSION)
 
-# obsolete?
-#makeout = $(depth)/make/$(outdir)
-#docout = $(depth)/Documentation/$(outdir)
-#binout = $(depth)/bin/$(outdir)
-
 doc-dir = $(src-depth)/Documentation
 po-dir = $(src-depth)/po