diff --git a/pkg/lv_drivers/Makefile b/pkg/lv_drivers/Makefile index 6d309fe60c83..d87c40ca810b 100644 --- a/pkg/lv_drivers/Makefile +++ b/pkg/lv_drivers/Makefile @@ -5,14 +5,11 @@ PKG_LICENSE=MIT include $(RIOTBASE)/pkg/pkg.mk -IGNORE_MODULES := \ - # +LV_DRIVERS_MODULES := $(filter lv_drivers_%,$(USEMODULE)) -LV_DRIVERS_MODULES := $(filter-out $(IGNORE_MODULES),$(filter lv_drivers_%,$(USEMODULE))) - -.PHONY: lvgl_% +.PHONY: lv_drivers_% all: $(LV_DRIVERS_MODULES) -lv_drivers_sdl: - "$(MAKE)" -C $(PKG_SOURCE_DIR)/sdl -f $(CURDIR)/Makefile.lv_drivers_module MODULE=$@ SRC=sdl.c +lv_drivers_%: + "$(MAKE)" -C $(PKG_SOURCE_DIR)/$* -f $(CURDIR)/Makefile.lv_drivers_module MODULE=$@ SRC=$*.c