Skip to content
Snippets Groups Projects
Commit 0610e6ff authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Add version check to Makefile

parent 153fbc32
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ DEB_ARCHS ?= amd64 i386 arm armhf ...@@ -18,7 +18,7 @@ DEB_ARCHS ?= amd64 i386 arm armhf
RPM_PLATFORMS ?= el/6 el/7 ol/6 ol/7 RPM_PLATFORMS ?= el/6 el/7 ol/6 ol/7
RPM_ARCHS ?= x86_64 i686 arm armhf RPM_ARCHS ?= x86_64 i686 arm armhf
all: deps test lint toolchain build all: check deps test lint toolchain build
help: help:
# make all => deps test lint toolchain build # make all => deps test lint toolchain build
...@@ -32,6 +32,13 @@ help: ...@@ -32,6 +32,13 @@ help:
# make packagecloud - send all packages to packagecloud # make packagecloud - send all packages to packagecloud
# make packagecloud-yank - remove specific version from packagecloud # make packagecloud-yank - remove specific version from packagecloud
check:
ifeq ($(RELEASE),true)
ifneq ($VERSION,$LAST_TAG)
$(error Bad version specified in VERSION file)
endif
endif
version: FORCE version: FORCE
@echo Current version: $(VERSION) @echo Current version: $(VERSION)
@echo Current iteration: $(ITTERATION) @echo Current iteration: $(ITTERATION)
......
0.6.0 0.6.3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment