1f445172ff
This patch fixes examples/galileo/Makefile so that it actually displays the intended help message when an unrecognized EXAMPLE is selected.
16 lines
440 B
Makefile
16 lines
440 B
Makefile
TARGET=galileo
|
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output gpio-interrupt i2c-LSM9DS0 i2c-callbacks
|
|
|
|
ifeq ($(filter $(EXAMPLE),$(KNOWN_EXAMPLES)),)
|
|
$(info Set the variable EXAMPLE to one of the following Galileo-specific examples:)
|
|
$(foreach EXAMPLE,$(KNOWN_EXAMPLES),$(info - $(EXAMPLE)))
|
|
$(error Unable to proceed)
|
|
endif
|
|
|
|
CONTIKI_PROJECT = $(EXAMPLE)
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
CONTIKI = ../..
|
|
include $(CONTIKI)/Makefile.include
|