Skip to content

Commit 10ef79e

Browse files
committed
Rename file and add Makefile
1 parent a81f397 commit 10ef79e

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

tools/make/lib/examples/Makefile

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
11

2-
# TARGETS #
2+
# DEPENDENCIES #
33

4-
# Run examples.
5-
#
6-
# This target runs a list of examples in sequential order. Note that we assume the examples can be run using Node.js.
7-
8-
examples: $(NODE_MODULES)
9-
$(QUIET) $(FIND_EXAMPLES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
10-
echo ""; \
11-
echo "Running example: $$file"; \
12-
NODE_ENV=$(NODE_ENV_EXAMPLES) \
13-
NODE_PATH=$(NODE_PATH_EXAMPLES) \
14-
$(NODE) $$file || exit 1; \
15-
done
16-
17-
.PHONY: examples
18-
19-
20-
# Run examples.
21-
#
22-
# This target runs a specified list of examples in sequential order. Note that we assume the examples can be run using Node.js.
23-
24-
examples-files: $(NODE_MODULES)
25-
$(QUIET) for file in $(FILES); do \
26-
echo ""; \
27-
echo "Running example: $$file"; \
28-
NODE_ENV=$(NODE_ENV_EXAMPLES) \
29-
NODE_PATH=$(NODE_PATH_EXAMPLES) \
30-
$(NODE) $$file || exit 1; \
31-
done
32-
33-
.PHONY: examples-files
4+
include $(TOOLS_MAKE_LIB_DIR)/examples/examples.mk
5+
# include $(TOOLS_MAKE_LIB_DIR)/examples/markdown.mk
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
# TARGETS #
3+
4+
# Run examples.
5+
#
6+
# This target runs a list of examples in sequential order. Note that we assume the examples can be run using Node.js.
7+
8+
examples: $(NODE_MODULES)
9+
$(QUIET) $(FIND_EXAMPLES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
10+
echo ""; \
11+
echo "Running example: $$file"; \
12+
NODE_ENV=$(NODE_ENV_EXAMPLES) \
13+
NODE_PATH=$(NODE_PATH_EXAMPLES) \
14+
$(NODE) $$file || exit 1; \
15+
done
16+
17+
.PHONY: examples
18+
19+
20+
# Run examples.
21+
#
22+
# This target runs a specified list of examples in sequential order. Note that we assume the examples can be run using Node.js.
23+
24+
examples-files: $(NODE_MODULES)
25+
$(QUIET) for file in $(FILES); do \
26+
echo ""; \
27+
echo "Running example: $$file"; \
28+
NODE_ENV=$(NODE_ENV_EXAMPLES) \
29+
NODE_PATH=$(NODE_PATH_EXAMPLES) \
30+
$(NODE) $$file || exit 1; \
31+
done
32+
33+
.PHONY: examples-files

0 commit comments

Comments
 (0)