summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-15 03:05:05 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-15 03:05:05 +0900
commita73c78beb869678132a13511385e0d79edd5baf7 (patch)
tree28d6f82d35e115b6a1eaf1879e8d8f4438ce7ba5
parent1c6621d5f0f594e01326a75111f1e30c714fd341 (diff)
downloadmruby-a73c78beb869678132a13511385e0d79edd5baf7.tar.gz
mruby-a73c78beb869678132a13511385e0d79edd5baf7.zip
update Makefile dependency
-rw-r--r--mrblib/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/mrblib/Makefile b/mrblib/Makefile
index 1fd0eb5a7..ec4b5ec23 100644
--- a/mrblib/Makefile
+++ b/mrblib/Makefile
@@ -43,10 +43,13 @@ endif
# generic build targets, rules
.PHONY : all
-all : $(MRBC) $(MLIB)
- $(AR) r $(LIBR) $(MLIB)
+all : $(LIBR)
@echo "make: built targets of `pwd`"
+# update libmruby.a
+$(LIBR) : $(MRBC) $(MLIB)
+ $(AR) r $(LIBR) $(MLIB)
+
# Compile mrblib source
$(MLIB) : $(CLIB)
$(CC) $(ALL_CFLAGS) -MMD $(INCLUDES) -c $(CLIB) -o $(MLIB)