Skip to content

Commit e7d2d3f

Browse files
authored
Fix find recursion in examples discovery (#33)
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.
1 parent b66c7e6 commit e7d2d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ else
2424
endif
2525

2626
SOURCE_FILES := $(shell find $(SRC_DIR) -name *.pony)
27-
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -type d))
27+
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -maxdepth 0 -type d))
2828
EXAMPLES_SOURCE_FILES := $(shell find $(EXAMPLES_DIR) -name *.pony)
2929
EXAMPLES_BINARIES := $(addprefix $(BUILD_DIR)/,$(EXAMPLES))
3030

0 commit comments

Comments
 (0)