mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-19 13:17:39 +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'
|
$(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`; \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue