mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-21 23:35:30 +03:00
There's no way to trigger CI on push OR PR, since the CI build on push is triggered immediately and when the PR is created the push run is already underway. Also, make some cosmetic changes to the artifact name to include the date, inav version and git revision.
18 lines
554 B
Makefile
18 lines
554 B
Makefile
FORKNAME := inav
|
|
|
|
FC_VER_MAJOR := $(shell grep " FC_VERSION_MAJOR" src/main/build/version.h | awk '{print $$3}' )
|
|
FC_VER_MINOR := $(shell grep " FC_VERSION_MINOR" src/main/build/version.h | awk '{print $$3}' )
|
|
FC_VER_PATCH := $(shell grep " FC_VERSION_PATCH" src/main/build/version.h | awk '{print $$3}' )
|
|
FC_VER := $(FC_VER_MAJOR).$(FC_VER_MINOR).$(FC_VER_PATCH)
|
|
|
|
FC_VER_SUFFIX ?=
|
|
ifneq ($(FC_VER_SUFFIX),)
|
|
FC_VER += -$(FC_VER_SUFFIX)
|
|
endif
|
|
|
|
REVISION := $(shell git rev-parse --short HEAD)
|
|
|
|
.PHONY: print_version
|
|
|
|
print_version:
|
|
@echo $(FC_VER)
|