]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/stepmake.make
* cygwin/changelog:
[lilypond.git] / make / stepmake.make
index d92fd1ff662b3871ed19f2596c392bdd65c1b9c3..dee7d048351c3dd8bbd3c5ca873866f1c4831d92 100644 (file)
@@ -2,7 +2,6 @@
 
 include $(depth)/make/toplevel-version.make
 
-
 # Use alternate configurations alongside eachother:
 #
 #     ./configure --enable-config=debug
@@ -27,28 +26,27 @@ else
 endif
 
 ifdef config
-  configuration=$(config)
+  config_make=$(config)
 else
-  ifeq ($(builddir),.)
-    configuration=$(depth)/config$(CONFIGSUFFIX).make
+  ifeq ($(builddir),)
+    config_make=$(depth)/config$(CONFIGSUFFIX).make
   else
-    # user package
-    configuration=$(depth)/$(builddir)/config$(CONFIGSUFFIX).make
-    # stepmake package
-    #configuration=$(depth)/../$(builddir)/stepmake/config$(CONFIGSUFFIX).make
+    config_make=$(builddir)/config$(CONFIGSUFFIX).make
   endif
 endif
 
-include $(configuration)
-
-ifeq ($(builddir),.)
-  outroot=$(builddir)
+ifeq ($(builddir),)
+  outroot=.
 else
-  outroot=$(depth)/$(builddir)/$(patsubst $(shell cd $(depth); pwd)%,%,$(shell cd .; pwd))
+  outroot=$(builddir)/$(patsubst $(shell cd $(depth); pwd)%,%,$(pwd))
 endif
 
+include $(config_make)
+
 outdir=$(outroot)/$(outbase)
-config_h=$(depth)/$(builddir)/config$(CONFIGSUFFIX).h
+
+# why not generic ?? 
+config_h=$(builddir)/config$(CONFIGSUFFIX).h
 
 # The outdir that was configured for: best guess to find binaries
 outconfbase=out$(CONFIGSUFFIX)