]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/toplevel-version.make
Add '-dcrop' option to ps and svg backends
[lilypond.git] / make / toplevel-version.make
index 4a1e24e9e2807a9ac44193a3fbd05faf461cb75e..e23347d3fdd5e3fc7fbca9f3f13483b8bbe909e9 100644 (file)
@@ -1,8 +1,17 @@
 # Toplevel_version.make
 
+ifeq ($(configure-srcdir), .)
 include $(depth)/VERSION
-TOPLEVEL_MAJOR_VERSION:=$(MAJOR_VERSION)
-TOPLEVEL_MINOR_VERSION:=$(MINOR_VERSION)
-TOPLEVEL_PATCH_LEVEL:=$(PATCH_LEVEL)
+else
+include $(configure-srcdir)/VERSION
+endif
+
+TOPLEVEL_MAJOR_VERSION=$(MAJOR_VERSION)
+TOPLEVEL_MINOR_VERSION=$(MINOR_VERSION)
+TOPLEVEL_PATCH_LEVEL=$(PATCH_LEVEL)
 # use to send patches, always empty for released version:
-TOPLEVEL_MY_PATCH_LEVEL:=$(MY_PATCH_LEVEL)
+TOPLEVEL_MY_PATCH_LEVEL=$(MY_PATCH_LEVEL)
+
+# TODO: used for the website; John says that he'll rewrite this
+TOPLEVEL_VERSION_STABLE=$(VERSION_STABLE)
+TOPLEVEL_VERSION_DEVEL=$(VERSION_DEVEL)