summaryrefslogtreecommitdiffstats
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-01-24 23:54:56 +0000
committerGitHub <noreply@github.com>2022-01-24 23:54:56 +0000
commitbf9569db93d9f9ce5e3a0ce7190f09e950b9f85b (patch)
tree4928dde824eb0995ee50306b7a7be91cb033c166 /build_keyboard.mk
parentc71c0fba9000cb586588da4c6bbf877d21d061b6 (diff)
Various Makefile optimisations (#16015)
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 6473e3e473..e8c3bfe5fa 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -37,6 +37,15 @@ ifdef SKIP_VERSION
OPT_DEFS += -DSKIP_VERSION
endif
+# Generate the version.h file
+ifdef SKIP_VERSION
+VERSION_H_FLAGS := --skip-all
+endif
+ifdef SKIP_GIT
+VERSION_H_FLAGS := --skip-git
+endif
+$(shell $(QMK_BIN) generate-version-h $(VERSION_H_FLAGS) -q -o quantum/version.h)
+
# Determine which subfolders exist.
KEYBOARD_FOLDER_PATH_1 := $(KEYBOARD)
KEYBOARD_FOLDER_PATH_2 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_1)))