misc: Updated the build system to use the new version header generator script, fixing #1043
This commit is contained in:
parent
e388fbbb2c
commit
7846112a7b
|
@ -174,13 +174,8 @@ all_platforms:
|
|||
|
||||
command.c: include/version.h
|
||||
|
||||
GIT_VERSION := $(shell git describe --always --dirty --tags)
|
||||
VERSION_HEADER := \#define FIRMWARE_VERSION "$(GIT_VERSION)"
|
||||
|
||||
include/version.h: FORCE
|
||||
ifneq ($(file <include/version.h), $(VERSION_HEADER))
|
||||
@echo " GEN GIT $@"
|
||||
$(Q)$(file >$@,$(VERSION_HEADER))
|
||||
endif
|
||||
@echo " GEN $@"
|
||||
$(Q)../scripts/gen-version.sh
|
||||
|
||||
-include *.d
|
||||
|
|
Loading…
Reference in New Issue