Skip to content

Commit

Permalink
move version info to the top of the output
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Aug 8, 2017
1 parent 5210f94 commit 26d348b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ endef
define BUILD
MAKE_VARS += VERBOSE=$(VERBOSE) COLOR=$(COLOR)
COMMANDS += $$(COMMAND)
MAKE_MSG = QMK Firmware v$$(shell git describe --abbrev=0 --tags 2>/dev/null)\n\n$(MAKE_MSG)
COMMAND_true_$$(COMMAND) := \
printf "$$(MAKE_MSG)" | \
$$(MAKE_MSG_FORMAT); \
Expand Down Expand Up @@ -420,7 +421,7 @@ define BUILD_TEST
COMMAND := $1
MAKE_CMD := $$(MAKE) -r -R -C $(ROOT_DIR) -f build_test.mk $$(MAKE_TARGET)
MAKE_VARS := TEST=$$(TEST_NAME) FULL_TESTS="$$(FULL_TESTS)"
MAKE_MSG := $$(MSG_MAKE_TEST)
MAKE_MSG := QMK Firmware v$$(shell git describe --abbrev=0 --tags 2>/dev/null)\n\n$$(MSG_MAKE_TEST)
$$(eval $$(call BUILD))
ifneq ($$(MAKE_TARGET),clean)
TEST_EXECUTABLE := $$(TEST_DIR)/$$(TEST_NAME).elf
Expand Down
6 changes: 1 addition & 5 deletions tmk_core/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ 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 @@ -279,7 +275,7 @@ gccversion :
$(eval CMD=$(BIN) $< $@ || exit 0)
@$(BUILD_CMD)

BEGIN = qmkversion gccversion sizebefore
BEGIN = gccversion sizebefore

# Link: create ELF output file from object files.
.SECONDARY : $(BUILD_DIR)/$(TARGET).elf
Expand Down

0 comments on commit 26d348b

Please sign in to comment.