Skip to content

Commit d063fcd

Browse files
committed
Update rules
1 parent 94d971a commit d063fcd

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tools/make/lib/examples/cpp.mk

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
# limitations under the License.
1717
#/
1818

19-
# VARIABLES #
20-
21-
# Define the path to a script for compiling a C++ example:
22-
compile_cpp_example_bin := $(TOOLS_DIR)/scripts/compile_cpp_example
23-
24-
2519
# RULES #
2620

2721
#/
@@ -51,8 +45,8 @@ examples-cpp:
5145
NODE="$(NODE)" \
5246
NODE_PATH="$(NODE_PATH)" \
5347
CXX_COMPILER="$(CXX)" \
54-
"${compile_cpp_example_bin}" $$file && \
55-
BOOST="$(DEPS_BOOST_BUILD_OUT)" $(MAKE) run || exit 1; \
48+
BOOST="$(DEPS_BOOST_BUILD_OUT)" $(MAKE) && \
49+
$(MAKE) run || exit 1; \
5650
done
5751

5852
.PHONY: examples-cpp
@@ -81,8 +75,8 @@ examples-cpp-files:
8175
NODE="$(NODE)" \
8276
NODE_PATH="$(NODE_PATH)" \
8377
CXX_COMPILER="$(CXX)" \
84-
"${compile_cpp_example_bin}" $$file && \
85-
BOOST="$(DEPS_BOOST_BUILD_OUT)" $(MAKE) run || exit 1; \
78+
BOOST="$(DEPS_BOOST_BUILD_OUT)" $(MAKE) && \
79+
$(MAKE) run || exit 1; \
8680
done
8781

8882
.PHONY: example-cpp-files

0 commit comments

Comments
 (0)