summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mirb/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/mirb/Makefile b/tools/mirb/Makefile
index 2729c4829..c44af4c6b 100644
--- a/tools/mirb/Makefile
+++ b/tools/mirb/Makefile
@@ -8,11 +8,20 @@ BASEDIR = ../../src
TARGET := ../../bin/mirb
LIBR := ../../lib/libmruby.a
-MAKEFILE_GEM_LIST := $(MRUBY_ROOT)/mrbgems/g/MakefileGemList
-ifeq ($(wildcard $(MAKEFILE_GEM_LIST)),)
+ifeq ($(strip $(ENABLE_GEMS)),)
+ # by default GEMs are deactivated
+ ENABLE_GEMS = false
+endif
+
+ifeq ($(ENABLE_GEMS),false)
GEM_ARCHIVE_FILES =
else
- include $(MAKEFILE_GEM_LIST)
+ MAKEFILE_GEM_LIST := $(MRUBY_ROOT)/mrbgems/g/MakefileGemList
+ ifeq ($(wildcard $(MAKEFILE_GEM_LIST)),)
+ GEM_ARCHIVE_FILES =
+ else
+ include $(MAKEFILE_GEM_LIST)
+ endif
endif
ifeq ($(OS),Windows_NT)