summaryrefslogtreecommitdiffhomepage
path: root/tools/mirb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mirb')
-rw-r--r--tools/mirb/Makefile8
-rw-r--r--tools/mirb/mirb.c3
2 files changed, 4 insertions, 7 deletions
diff --git a/tools/mirb/Makefile b/tools/mirb/Makefile
index 4c6ab4e62..ba307227c 100644
--- a/tools/mirb/Makefile
+++ b/tools/mirb/Makefile
@@ -21,10 +21,6 @@ EXTS := $(EXT1)
LIBS = -lm
INCLUDES = -I$(BASEDIR) -I$(BASEDIR)/../include
-# compiler, linker (gcc)
-CC = gcc
-LL = gcc
-YACC = bison
DEBUG_MODE = 1
ifeq ($(DEBUG_MODE),1)
CFLAGS = -g -O3
@@ -69,5 +65,5 @@ clean :
$(MAKE) clean -C ../../mrblib $(MAKE_FLAGS)
$(MAKE) clean -C ../mrbc $(MAKE_FLAGS)
@echo "make: removing targets, objects and depend files of `pwd`"
- -rm -f $(EXE) $(OBJS)
- -rm -f $(OBJS:.o=.d)
+ -$(RM_F) $(EXE) $(OBJS)
+ -$(RM_F) $(OBJS:.o=.d)
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c
index 459923768..59e5046cb 100644
--- a/tools/mirb/mirb.c
+++ b/tools/mirb/mirb.c
@@ -162,7 +162,8 @@ main(void)
last_code_line[char_index] = '\0';
- if (strcmp(last_code_line, "quit") == 0) {
+ if ((strcmp(last_code_line, "quit") == 0) ||
+ (strcmp(last_code_line, "exit") == 0)) {
if (code_block_open) {
/* cancel the current block and reset */
code_block_open = FALSE;