Skip to content

Commit 5fae2d2

Browse files
authored
Prevent find from recursing into example subdirectories (#35)
Without -maxdepth 0, any example that contains a subdirectory would have that subdirectory treated as a separate example, breaking the build. Closes #33
1 parent 9ac3f1b commit 5fae2d2

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)/* -type d))
41+
EXAMPLES := $(notdir $(shell find $(EXAMPLES_DIR)/* -maxdepth 0 -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)