summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-04-09 22:48:35 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-04-13 16:00:29 +0300
commit738b8d2b9c458839d23f584843b251b1c8f29880 (patch)
tree50f308e608be583535861d8ba4a2356931cf9dd2 /Makefile
parente950d4e12fb92550b34ab7c2b48d45a11bf88026 (diff)
Add SKIP_VERSION option to speed up compilation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 297de0cafb..6a93692bf6 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