X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=6a93692bf699a1dcb0f88c433e413cda5abc72f9;hb=fbec02c148862e0a3c53476c64193a3c6e039a3c;hp=297de0cafbdaaaeec5de093ce589c3a4c06f97d3;hpb=224fc8a20fc78927ed90326ca6c07370d33d00d5;p=qmk_firmware.git diff --git a/Makefile b/Makefile index 297de0caf..6a93692bf 100644 --- a/Makefile +++ b/Makefile @@ -534,14 +534,22 @@ test: test-all .PHONY: test-clean test-clean: test-all-clean +ifdef SKIP_VERSION +SKIP_GIT := yes +endif + # Generate the version.h file ifndef SKIP_GIT GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S") else GIT_VERSION := NA endif +ifndef SKIP_VERSION BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S") $(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h) $(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h) +else +BUILD_DATE := NA +endif include $(ROOT_DIR)/testlist.mk