Skip to content

Commit

Permalink
add version to make output
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Aug 8, 2017
1 parent f1536a3 commit 5210f94
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tmk_core/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 5210f94

Please sign in to comment.