defs.mk: Add support for INCLUDE_REV_IN_VERSIONS

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-09-18 13:41:53 +00:00
commit 807c8dc33f

View file

@ -640,14 +640,15 @@ define beautify_lib_path
$(SED) 's/:/\n + /g'
endef
#$(shell $(CAT) $1/VERSION | $(SED) 's/-dev//; s/-[^-]*$$//')
define $(CAT)_version
$(shell $(CAT) $1/VERSION | $(SED) 's/-dev//')
endef
define version
$(shell $(CAT) $1/VERSION | $(SED) 's/-.*//')
endef
ifeq ($(INCLUDE_REV_IN_VERSIONS),true)
define version
$(shell $(CAT) $1/VERSION | $(SED) 's/-dev//')
endef
else
define version
$(shell $(CAT) $1/VERSION | $(SED) 's/-.*//')
endef
endif
define install_links
cwd=`pwd`; \