def METHOD_NAME(self):
    target = self.target_combo.currentText()
    cmd = ["make", "-C", utils.PAPARAZZI_HOME, "-f", "Makefile.ac",
           "AIRCRAFT={}".format(self.ac.name), "{}.compile".format(target)]
    if self.print_config_checkbox.isChecked():
        cmd.append("PRINT_CONFIG=1")
    shortname = "Build {}".format(self.ac.name)
    self.refresh_ac.emit(self.ac)
    self.conf.save(False)
    self.target_combo.setCurrentText(target)
    self.enable_buttons(False)
    utils.get_settings().setValue("ui/last_target", target)
    self.spawn_program.emit(shortname, cmd, None, lambda: self.enable_buttons(True))