X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=8350d5ce34434549847e9d2ec684704e30daaab2;hb=eac4bab342e8cb95248985eb134887d898f2b49e;hp=e67e2fa0931e26f95f7a854d0c80cbd33a187883;hpb=bd642d08aba2a0ad7e9eefdf3406578830c90158;p=qmk_firmware.git diff --git a/Makefile b/Makefile index e67e2fa09..8350d5ce3 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,12 @@ endif # Otherwise the [OK], [ERROR] and [WARN] messages won't be displayed correctly override SILENT := false +ifndef SUB_IS_SILENT QMK_VERSION := $(shell git describe --abbrev=0 --tags 2>/dev/null) ifneq ($(QMK_VERSION),) $(info QMK Firmware $(QMK_VERSION)) endif +endif ON_ERROR := error_occurred=1 @@ -114,6 +116,14 @@ list-keyboards: echo $(KEYBOARDS) exit 0 +define PRINT_KEYBOARD + $(info $(PRINTING_KEYBOARD)) +endef + +generate-keyboards-file: + $(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD))) + exit 0 + #Compatibility with the old make variables, anything you specify directly on the command line # always overrides the detected folders ifdef keyboard