Skip to content

Commit 3d50130

Browse files
authored
Fix find recursion in examples discovery (#69)
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 9040371 commit 3d50130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ endif
3838
PONYC := $(PONYC) $(SSL)
3939

4040
SOURCE_FILES := $(shell find $(SRC_DIR) -name "*.pony")
41-
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* ! -name build -type d))
41+
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -maxdepth 0 ! -name build -type d))
4242
EXAMPLES_SOURCE_FILES := $(shell find $(EXAMPLES_DIR) -name "*.pony")
4343
EXAMPLES_BINARIES := $(addprefix $(BUILD_DIR)/,$(EXAMPLES))
4444

0 commit comments

Comments
 (0)