From 5121358e879d9a61bb9e4565206e2705be2e650e Mon Sep 17 00:00:00 2001 From: mirusu400 Date: Tue, 13 Aug 2024 21:34:39 -0400 Subject: [PATCH] Makefile: Fix error message when cannot find target board not $(MAKE) help|list_config_targets, we should use $(MAKE) list_config_targets for the desired results. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fe8580402d..7d4283a956 100644 --- a/Makefile +++ b/Makefile @@ -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: