mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Add support for INCLUDE_REV_IN_VERSIONS
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f712af3dfe
commit
807c8dc33f
1 changed files with 9 additions and 8 deletions
17
make/defs.mk
17
make/defs.mk
|
|
@ -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`; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue