1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #20895 from mguetschow/make-unrecognized

Makefile: add .DEFAULT target to further guide new users
This commit is contained in:
Marian Buschsieweke 2024-10-08 10:40:39 +00:00 committed by GitHub
commit 4e797a1c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."
@ -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