add version to make output
This commit is contained in:
parent
f1536a3f54
commit
5210f94a56
1 changed files with 7 additions and 3 deletions
|
@ -237,6 +237,10 @@ sizeafter: $(BUILD_DIR)/$(TARGET).hex
|
||||||
# test file sizes eventually
|
# 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
|
# @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.
|
# Display compiler version information.
|
||||||
gccversion :
|
gccversion :
|
||||||
@$(SILENT) || $(CC) --version
|
@$(SILENT) || $(CC) --version
|
||||||
|
@ -275,7 +279,7 @@ gccversion :
|
||||||
$(eval CMD=$(BIN) $< $@ || exit 0)
|
$(eval CMD=$(BIN) $< $@ || exit 0)
|
||||||
@$(BUILD_CMD)
|
@$(BUILD_CMD)
|
||||||
|
|
||||||
BEGIN = gccversion sizebefore
|
BEGIN = qmkversion gccversion sizebefore
|
||||||
|
|
||||||
# Link: create ELF output file from object files.
|
# Link: create ELF output file from object files.
|
||||||
.SECONDARY : $(BUILD_DIR)/$(TARGET).elf
|
.SECONDARY : $(BUILD_DIR)/$(TARGET).elf
|
||||||
|
@ -382,7 +386,7 @@ $(eval $(foreach OUTPUT,$(OUTPUTS),$(shell mkdir -p $(OUTPUT) 2>/dev/null)))
|
||||||
|
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all finish sizebefore sizeafter gccversion \
|
.PHONY : all finish sizebefore sizeafter qmkversion \
|
||||||
build elf hex eep lss sym coff extcoff \
|
gccversion build elf hex eep lss sym coff extcoff \
|
||||||
clean clean_list debug gdb-config show_path \
|
clean clean_list debug gdb-config show_path \
|
||||||
program teensy dfu flip dfu-ee flip-ee dfu-start
|
program teensy dfu flip dfu-ee flip-ee dfu-start
|
Loading…
Reference in a new issue