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' $(SED) 's/:/\n + /g'
endef endef
#$(shell $(CAT) $1/VERSION | $(SED) 's/-dev//; s/-[^-]*$$//') ifeq ($(INCLUDE_REV_IN_VERSIONS),true)
define $(CAT)_version define version
$(shell $(CAT) $1/VERSION | $(SED) 's/-dev//') $(shell $(CAT) $1/VERSION | $(SED) 's/-dev//')
endef endef
else
define version define version
$(shell $(CAT) $1/VERSION | $(SED) 's/-.*//') $(shell $(CAT) $1/VERSION | $(SED) 's/-.*//')
endef endef
endif
define install_links define install_links
cwd=`pwd`; \ cwd=`pwd`; \