From cb7fe4943aa1628bd0bc690c65edfd6cd2898c3b Mon Sep 17 00:00:00 2001 From: cadmic Date: Thu, 12 Sep 2024 13:37:13 -0700 Subject: [PATCH] Fix find command error (#2192) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 295bb66993..c1ff3df25e 100644 --- a/Makefile +++ b/Makefile @@ -326,7 +326,11 @@ SOUNDFONT_DEP_FILES := $(foreach f,$(SOUNDFONT_O_FILES),$(f:.o=.d)) # create extracted directory $(shell mkdir -p $(EXTRACTED_DIR)) -ASSET_BIN_DIRS_EXTRACTED := $(shell find $(EXTRACTED_DIR)/assets -type d) +ifneq ($(wildcard $(EXTRACTED_DIR)/assets),) + ASSET_BIN_DIRS_EXTRACTED := $(shell find $(EXTRACTED_DIR)/assets -type d) +else + ASSET_BIN_DIRS_EXTRACTED := +endif ASSET_BIN_DIRS_COMMITTED := $(shell find assets -type d -not -path "assets/xml*" -not -path assets/text) ASSET_BIN_DIRS := $(ASSET_BIN_DIRS_EXTRACTED) $(ASSET_BIN_DIRS_COMMITTED)