1
0
Fork 0

Move git submodule check and version generation to main Makefile

This commit is contained in:
Fred Sundvik 2016-08-08 11:19:29 +03:00
parent cc2df445ab
commit 60c6e79ecb
3 changed files with 14 additions and 16 deletions

View file

@ -183,9 +183,4 @@ endif
include $(TMK_PATH)/rules.mk
GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
OPT_DEFS += -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\"
$(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(QUANTUM_PATH)/version.h)
$(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(QUANTUM_PATH)/version.h)