Skip to content

Commit d4e9744

Browse files
committed
Add repl recipe
1 parent 0ab4c45 commit d4e9744

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

tools/make/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ endif
2424
# DEPENDENCIES #
2525

2626
include $(TOOLS_MAKE_DIR)/lib/help/Makefile
27+
include $(TOOLS_MAKE_DIR)/lib/repl/Makefile
2728
include $(TOOLS_MAKE_DIR)/lib/find/Makefile
2829
include $(TOOLS_MAKE_DIR)/lib/lint/Makefile
2930
include $(TOOLS_MAKE_DIR)/lib/notes/Makefile

tools/make/lib/repl/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# VARIABLES #
3+
4+
# Define the path of the REPL executable:
5+
REPL ?= $(BIN_DIR)/repl
6+
7+
8+
# TARGETS #
9+
10+
# Start a REPL environment.
11+
#
12+
# This target starts a REPL environment.
13+
14+
repl: node_modules $(REPL)
15+
@echo "Starting REPL..."
16+
@$(REPL)
17+
18+
.PHONY: repl

tools/make/usage.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Usage: make <cmd>
33

44
make help Print this message.
5+
make repl Start a REPL environment.
56
make notes Search for code annotations.
67
make list-sources List all source files (excluding examples and tests).
78
make list-examples List all example files.

0 commit comments

Comments
 (0)