clean.py 485 B

123456789101112
  1. """Clean the QMK firmware folder of build artifacts.
  2. """
  3. from qmk.commands import run, create_make_target
  4. from milc import cli
  5. @cli.argument('-a', '--all', arg_only=True, action='store_true', help='Remove *.hex and *.bin files in the QMK root as well.')
  6. @cli.subcommand('Clean the QMK firmware folder of build artifacts.')
  7. def clean(cli):
  8. """Runs `make clean` (or `make distclean` if --all is passed)
  9. """
  10. run(create_make_target('distclean' if cli.args.all else 'clean'))