Fix up `qmk mass-compile` makefile indenting. (#22115)
This commit is contained in:
parent
e001c3349b
commit
73ffa4594d
|
@ -64,18 +64,18 @@ def mass_compile(cli):
|
||||||
# yapf: disable
|
# yapf: disable
|
||||||
f.write(
|
f.write(
|
||||||
f"""\
|
f"""\
|
||||||
all: {keyboard_safe}_{keymap_name}_binary
|
all: {keyboard_safe}_{keymap_name}_binary
|
||||||
{keyboard_safe}_{keymap_name}_binary:
|
{keyboard_safe}_{keymap_name}_binary:
|
||||||
@rm -f "{build_log}" || true
|
@rm -f "{build_log}" || true
|
||||||
@echo "Compiling QMK Firmware for target: '{keyboard_name}:{keymap_name}'..." >>"{build_log}"
|
@echo "Compiling QMK Firmware for target: '{keyboard_name}:{keymap_name}'..." >>"{build_log}"
|
||||||
+@$(MAKE) -C "{QMK_FIRMWARE}" -f "{QMK_FIRMWARE}/builddefs/build_keyboard.mk" KEYBOARD="{keyboard_name}" KEYMAP="{keymap_name}" COLOR=true SILENT=false {' '.join(cli.args.env)} \\
|
+@$(MAKE) -C "{QMK_FIRMWARE}" -f "{QMK_FIRMWARE}/builddefs/build_keyboard.mk" KEYBOARD="{keyboard_name}" KEYMAP="{keymap_name}" COLOR=true SILENT=false {' '.join(cli.args.env)} \\
|
||||||
>>"{build_log}" 2>&1 \\
|
>>"{build_log}" 2>&1 \\
|
||||||
|| cp "{build_log}" "{failed_log}"
|
|| cp "{build_log}" "{failed_log}"
|
||||||
@{{ grep '\[ERRORS\]' "{build_log}" >/dev/null 2>&1 && printf "Build %-64s \e[1;31m[ERRORS]\e[0m\\n" "{keyboard_name}:{keymap_name}" ; }} \\
|
@{{ grep '\[ERRORS\]' "{build_log}" >/dev/null 2>&1 && printf "Build %-64s \e[1;31m[ERRORS]\e[0m\\n" "{keyboard_name}:{keymap_name}" ; }} \\
|
||||||
|| {{ grep '\[WARNINGS\]' "{build_log}" >/dev/null 2>&1 && printf "Build %-64s \e[1;33m[WARNINGS]\e[0m\\n" "{keyboard_name}:{keymap_name}" ; }} \\
|
|| {{ grep '\[WARNINGS\]' "{build_log}" >/dev/null 2>&1 && printf "Build %-64s \e[1;33m[WARNINGS]\e[0m\\n" "{keyboard_name}:{keymap_name}" ; }} \\
|
||||||
|| printf "Build %-64s \e[1;32m[OK]\e[0m\\n" "{keyboard_name}:{keymap_name}"
|
|| printf "Build %-64s \e[1;32m[OK]\e[0m\\n" "{keyboard_name}:{keymap_name}"
|
||||||
@rm -f "{build_log}" || true
|
@rm -f "{build_log}" || true
|
||||||
"""# noqa
|
"""# noqa
|
||||||
)
|
)
|
||||||
# yapf: enable
|
# yapf: enable
|
||||||
|
|
||||||
|
@ -83,10 +83,10 @@ def mass_compile(cli):
|
||||||
# yapf: disable
|
# yapf: disable
|
||||||
f.write(
|
f.write(
|
||||||
f"""\
|
f"""\
|
||||||
@rm -rf "{QMK_FIRMWARE}/.build/{keyboard_safe}_{keymap_name}.elf" 2>/dev/null || true
|
@rm -rf "{QMK_FIRMWARE}/.build/{keyboard_safe}_{keymap_name}.elf" 2>/dev/null || true
|
||||||
@rm -rf "{QMK_FIRMWARE}/.build/{keyboard_safe}_{keymap_name}.map" 2>/dev/null || true
|
@rm -rf "{QMK_FIRMWARE}/.build/{keyboard_safe}_{keymap_name}.map" 2>/dev/null || true
|
||||||
@rm -rf "{QMK_FIRMWARE}/.build/obj_{keyboard_safe}_{keymap_name}" || true
|
@rm -rf "{QMK_FIRMWARE}/.build/obj_{keyboard_safe}_{keymap_name}" || true
|
||||||
"""# noqa
|
"""# noqa
|
||||||
)
|
)
|
||||||
# yapf: enable
|
# yapf: enable
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
|
Loading…
Reference in New Issue