1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/preprocessor/Makefile.include
2022-10-17 10:38:14 +02:00

19 lines
582 B
Makefile

RIOT_PP_SUCCESSOR_MAX ?= 9999
PSEUDOMODULES += preprocessor_successor
USEMODULE_INCLUDES_preprocessor := $(BINDIR)/preprocessor
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_preprocessor)
RIOT_GENERATE_PP_HEADERS :=
ifneq (,$(filter preprocessor_successor,$(USEMODULE)))
RIOT_GENERATE_PP_HEADERS += $(BINDIR)/preprocessor/preprocessor_successor.h
endif
BUILDDEPS += $(RIOT_GENERATE_PP_HEADERS)
$(BINDIR)/preprocessor/preprocessor_successor.h:
@mkdir -p '$(dir $@)'
$(Q)'$(RIOTTOOLS)/generate_pp_successor_header/generate_pp_successor_header.sh' $(RIOT_PP_SUCCESSOR_MAX) > $@