mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
648e014184
Redirecting `2>&1 >/dev/null` moves stderr to stdout first and then stdout to /dev/null; when checking for command existence or otherwise silencing output, this is usually not desired (but only starts producing errors when the actual command fails, which is often not tested).
18 lines
474 B
Makefile
18 lines
474 B
Makefile
.PHONY: riotgen-installed generate-%
|
|
|
|
-include makefiles/color.inc.mk
|
|
|
|
riotgen-installed:
|
|
@command -v riotgen > /dev/null 2>&1 || \
|
|
{ $(COLOR_ECHO) \
|
|
"$(COLOR_RED)'riotgen' command is not available \
|
|
please consider installing it from \
|
|
https://pypi.python.org/pypi/riotgen$(COLOR_RESET)"; \
|
|
exit 1; }
|
|
|
|
GENERATORS = board driver example module pkg test
|
|
$(addprefix generate-,$(GENERATORS)): generate-%
|
|
|
|
generate-%: riotgen-installed
|
|
@RIOTBASE=$(CURDIR) riotgen $* -i
|