diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-11-22 19:01:02 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-11-22 19:01:02 +0800 |
| commit | 4f55a3e0b477509a9bd3b44f9eccc4613d29fc1b (patch) | |
| tree | 3e3833eef7ea6db4f7d4f83eada79f3ad53aaba5 | |
| parent | a26e5c05c76c2ebba298c2cee8df44541784f801 (diff) | |
| download | mruby-4f55a3e0b477509a9bd3b44f9eccc4613d29fc1b.tar.gz mruby-4f55a3e0b477509a9bd3b44f9eccc4613d29fc1b.zip | |
Deactivate / Activate GEMs Flag introduced into mruby
| -rw-r--r-- | tools/mruby/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/mruby/Makefile b/tools/mruby/Makefile index 53383a70b..b31ed4941 100644 --- a/tools/mruby/Makefile +++ b/tools/mruby/Makefile @@ -8,11 +8,20 @@ BASEDIR = $(MRUBY_ROOT)/src TARGET := $(MRUBY_ROOT)/bin/mruby LIBR := $(MRUBY_ROOT)/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) |
