Set VERSION from xxx_VERSION if available, and use 0.0.1 as default if not

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@18949 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2004-03-29 12:02:53 +00:00
parent 81c56e1c3a
commit 5e3bc3d662
2 changed files with 18 additions and 0 deletions

View file

@ -91,6 +91,15 @@ ifeq ($(MAKE_CURRENT_VERSION),)
MAKE_CURRENT_VERSION = yes
endif
# Set VERSION from xxx_VERSION
ifneq ($($(GNUSTEP_INSTANCE)_VERSION),)
VERSION = $($(GNUSTEP_INSTANCE)_VERSION)
endif
ifeq ($(VERSION),)
VERSION = 0.0.1
endif
# This is used on Apple to build frameworks which can be embedded into
# applications. You usually set it to something like
# @executable_path/../Frameworks and then you can embed the framework

View file

@ -70,6 +70,15 @@ ifeq ($(FINAL_LIBRARY_INSTALL_DIR),)
FINAL_LIBRARY_INSTALL_DIR = $(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)
endif
# Set VERSION from xxx_VERSION
ifneq ($($(GNUSTEP_INSTANCE)_VERSION),)
VERSION = $($(GNUSTEP_INSTANCE)_VERSION)
endif
ifeq ($(VERSION),)
VERSION = 0.0.1
endif
#
# Manage the case that LIBRARY_NAME starts with 'lib', and the case
# that it doesn't start with 'lib'. In both cases, we need to create