From 09b18b7cb6f1c1ab1b76bd9bb75b558abe6f273d Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Mon, 23 Feb 2026 13:35:55 -0500 Subject: [PATCH] Fix find recursion in examples discovery The find command that discovers example directories recurses into subdirectories. Adding -maxdepth 0 prevents this. Without the fix, any example with a subdirectory would be treated as a separate example, breaking the build. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2f345e8..f5dfda1 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ else endif SOURCE_FILES := $(shell find $(SRC_DIR) -name *.pony) -EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -type d)) +EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -maxdepth 0 -type d)) EXAMPLES_SOURCE_FILES := $(shell find $(EXAMPLES_DIR) -name *.pony) EXAMPLES_BINARIES := $(addprefix $(BUILD_DIR)/,$(EXAMPLES))