aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2017-08-07 10:36:23 -0400
committerGravatar Jack Humbert <jack.humb@gmail.com>2017-08-08 16:06:45 -0400
commit5210f94a56483c23f5d302e654702d56ca70c206 (patch)
tree52cbbbead81d7ae83259f2a6d33bf5b300251946 /tmk_core
parentf1536a3f547a48a0b244be122937c3329dfd31e0 (diff)
downloadqmk_firmware-5210f94a56483c23f5d302e654702d56ca70c206.tar.gz
add version to make output
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/rules.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index b7cb0a559..c198f9edb 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -237,6 +237,10 @@ sizeafter: $(BUILD_DIR)/$(TARGET).hex
# test file sizes eventually
# @if [[ $($(SIZE) --target=$(FORMAT) $(TARGET).hex | $(AWK) 'NR==2 {print "0x"$5}') -gt 0x200 ]]; then $(SECHO) "File is too big!"; fi
+# Display qmk version information.
+qmkversion :
+ @$(SILENT) || printf "QMK Firmware v$(shell git describe --abbrev=0 --tags 2>/dev/null)\n\n"
+
# Display compiler version information.
gccversion :
@$(SILENT) || $(CC) --version
@@ -275,7 +279,7 @@ gccversion :
$(eval CMD=$(BIN) $< $@ || exit 0)
@$(BUILD_CMD)
-BEGIN = gccversion sizebefore
+BEGIN = qmkversion gccversion sizebefore
# Link: create ELF output file from object files.
.SECONDARY : $(BUILD_DIR)/$(TARGET).elf
@@ -382,7 +386,7 @@ $(eval $(foreach OUTPUT,$(OUTPUTS),$(shell mkdir -p $(OUTPUT) 2>/dev/null)))
# Listing of phony targets.
-.PHONY : all finish sizebefore sizeafter gccversion \
-build elf hex eep lss sym coff extcoff \
+.PHONY : all finish sizebefore sizeafter qmkversion \
+gccversion build elf hex eep lss sym coff extcoff \
clean clean_list debug gdb-config show_path \
program teensy dfu flip dfu-ee flip-ee dfu-start \ No newline at end of file