mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6b50033766
As the POSIX documentation[1] of `command -v` guarantees that on error there will be no output (and there will be output in the other cases), the tests in Makefiles were simplified to test for output equality to the empty string. Redirects swallowing error outputs were removed, as the command produces no error output there (as recommended at [2]). Existing uses of `command` are simplified as well. [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html [2]: https://salsa.debian.org/debian/debianutils/-/blob/master/debian/NEWS
15 lines
347 B
Makefile
15 lines
347 B
Makefile
INCLUDES += -I$(PKGDIRBASE)/flatbuffers/include
|
|
|
|
FLATC ?= flatc
|
|
|
|
ifeq (,$(shell command -v flatc ))
|
|
FLATC = $(RIOTTOOLS)/flatc/flatc
|
|
$(call target-export-variables,all,FLATC)
|
|
endif
|
|
|
|
# This module requires cpp11 support
|
|
CXXEXFLAGS += -std=c++11
|
|
|
|
# This package is a header only package, so there's nothing to build
|
|
PSEUDOMODULES += flatbuffers
|