Skip to content

Commit

Permalink
Makefile: add .DEFAULT target to further guide new users
Browse files Browse the repository at this point in the history
  • Loading branch information
mguetschow committed Oct 8, 2024
1 parent 0e20bfd commit ec9cd25
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ include makefiles/tools/riotgen.inc.mk

include makefiles/color.inc.mk

welcome:
# Prints a welcome message
define welcome_message
@echo "Welcome to RIOT - The friendly OS for IoT!"
@echo ""
@echo "You executed 'make' from the base directory."
Expand All @@ -70,3 +71,13 @@ welcome:
@echo "==> tl;dr Try running:"
@echo " cd examples/default"
@echo " make BOARD=<INSERT_BOARD_NAME>"
endef

welcome:
$(call welcome_message)

.DEFAULT:
@echo '*** ERROR: unrecognized target "$@"'
@echo ""
$(call welcome_message)
@exit 1

0 comments on commit ec9cd25

Please sign in to comment.