]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/toplevel-version.make
Add support for LSR snippets texidocs translation
[lilypond.git] / make / toplevel-version.make
index 4a1e24e9e2807a9ac44193a3fbd05faf461cb75e..176ad185d143d4863cce2c815f0bf640a2d152a9 100644 (file)
@@ -1,8 +1,13 @@
 # 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)