From 0650858f2ac48b67ef726ea6aa3720d0aee70934 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 20 Aug 2019 13:56:53 +0200 Subject: [PATCH] only try to build indirectly referenced menus that are found in the module --- App/tools/driver.makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/tools/driver.makefile b/App/tools/driver.makefile index b93cd4e..a5d47ec 100644 --- a/App/tools/driver.makefile +++ b/App/tools/driver.makefile @@ -366,7 +366,7 @@ RECORDS = $(filter %Record, $(basename $(notdir $(SRCS)))) export RECORDS MENUS = $(basename $(filter menu%.dbd, $(notdir $(DBDS)))) -MENUS += $(if ${DBDS}, $(shell awk '/^\s*include.*\/ {print gensub(/.*(menu.*)\.dbd.*/,"\\1","g")}' ${DBDS})) +MENUS += $(basename $(notdir $(wildcard $(foreach m,$(if $(filter-out -none-,${DBDS}), $(shell awk '/^\s*include.*\/ {print gensub(/.*(menu.*\.dbd).*/,"\\1","g")}' $(filter-out -none-,${DBDS}))),$(addsuffix $m,$(sort $(dir $(DBDS)))))))) export MENUS BPTS = $(patsubst %.data,%.dbd,$(wildcard bpt*.data))