mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Default to 1.0.0-0-dev, if $(TOPDIR)/VERSION is absent
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
260a703cc9
commit
b3659f75b8
1 changed files with 4 additions and 6 deletions
10
make/defs.mk
10
make/defs.mk
|
|
@ -121,12 +121,6 @@ beautify_lib_path = $(SED) 's/:/\n + /g'
|
|||
find_files = $(wildcard $(addsuffix /$(1),$(patsubst :, ,$(2))))
|
||||
find_file = $(firstword $(call find_files,$(1),$(2)) $(1)-not-found)
|
||||
|
||||
ifeq ($(INCLUDE_REV_IN_VERSIONS),true)
|
||||
version = $(shell $(CAT) $1/VERSION | $(SED) 's/-dev//; s/[ ]*//g')
|
||||
else
|
||||
version = $(shell $(CAT) $1/VERSION | $(SED) 's/-.*//; s/[ ]*//g')
|
||||
endif
|
||||
|
||||
define install_links
|
||||
cwd="$(CWD)"; \
|
||||
$(ECHO) "o in $(INSTALL_$(1)DIR):" ;\
|
||||
|
|
@ -231,8 +225,12 @@ CREATE_DEVEL ?= true
|
|||
ifeq ($(VERSION),)
|
||||
ifneq ($(wildcard $(VERSION_FILE)),)
|
||||
VERSION := $(shell $(CAT) $(VERSION_FILE))
|
||||
else
|
||||
VERSION := $(shell echo 1.0.0.0-dev | tee $(VERSION_FILE))
|
||||
$(warning Automatically created missing $(VERSION_FILE).)
|
||||
endif
|
||||
endif
|
||||
|
||||
DIST_VERSION ?= $(patsubst %-dev,%,$(VERSION))
|
||||
HEX_VERSION := $(shell $(ECHO) $(DIST_VERSION) | \
|
||||
$(SED) 's/-dev//; s/pre[^\.]*//; s/F[^\.]//; s/[\.-]/ /g' | $(XARGS) $(PRINTF) "0x%02x%02x%02x%02x")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue