summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-11-22 19:00:52 +0800
committerDaniel Bovensiepen <[email protected]>2012-11-22 19:00:52 +0800
commita26e5c05c76c2ebba298c2cee8df44541784f801 (patch)
tree83f7b2f954a7f48b1c30db81e4c3e5be1d13f7a1 /tools
parent2a2e20680966c674786011450eb59abb595147fd (diff)
downloadmruby-a26e5c05c76c2ebba298c2cee8df44541784f801.tar.gz
mruby-a26e5c05c76c2ebba298c2cee8df44541784f801.zip
Deactivate / Activate GEMs Flag introduced into mirb
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)