Skip to content

Commit

Permalink
fix: Fix error message when cannot find target board
Browse files Browse the repository at this point in the history
not $(MAKE) help|list_config_targets, we should use $(MAKE) list_config_targets
for the desired results.
  • Loading branch information
mirusu400 authored Aug 7, 2024
1 parent a8d54c7 commit 4f6888c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ distclean:
# All other targets are handled by PX4_MAKE. Add a rule here to avoid printing an error.
%:
$(if $(filter $(FIRST_ARG),$@), \
$(error "Make target $@ not found. It either does not exist or $@ cannot be the first argument. Use '$(MAKE) help|list_config_targets' to get a list of all possible [configuration] targets."),@#)
$(error "Make target $@ not found. It either does not exist or $@ cannot be the first argument. Use '$(MAKE) list_config_targets' to get a list of all possible [configuration] targets."),@#)

# Print a list of non-config targets (based on http://stackoverflow.com/a/26339924/1487069)
help:
Expand Down

0 comments on commit 4f6888c

Please sign in to comment.