summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-04-22 16:45:29 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-04-22 16:45:29 -0700
commit484a5f6779abd752fb95f107dec6fa79465f52c7 (patch)
tree0e6ad709c6944eb9e36f41560df888680c036bb4 /tools
parenta639479c2731e7167887dcbb71208449f1a80923 (diff)
parentf9d4a5a02b206a2020738ce09049d2a220ebe1d4 (diff)
downloadmruby-484a5f6779abd752fb95f107dec6fa79465f52c7.tar.gz
mruby-484a5f6779abd752fb95f107dec6fa79465f52c7.zip
Merge pull request #39 from MobiRuby/make_clean
Fixed to forget to remove some files on 'make clean'
Diffstat (limited to 'tools')
-rw-r--r--tools/mrbc/Makefile1
-rw-r--r--tools/mruby/Makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/mrbc/Makefile b/tools/mrbc/Makefile
index ba7764b78..7271a2fed 100644
--- a/tools/mrbc/Makefile
+++ b/tools/mrbc/Makefile
@@ -69,5 +69,6 @@ $(YC) : $(YSRC)
clean :
-rm -f $(EXE) $(OBJS) $(OBJY) $(YC)
-rm -f $(OBJS:.o=.d) $(OBJY:.o=.d)
+ -rm -f $(patsubst %.c,%.o,$(EXCEPT1)) $(patsubst %.c,%.d,$(EXCEPT1))
@echo "make: removing targets, objects and depend files of `pwd`"
diff --git a/tools/mruby/Makefile b/tools/mruby/Makefile
index dfb8b7f7c..62d7cdd3f 100644
--- a/tools/mruby/Makefile
+++ b/tools/mruby/Makefile
@@ -86,4 +86,5 @@ clean :
$(MAKE) clean -C ../../mrblib $(MAKE_FLAGS)
-rm -f $(EXE) $(OBJS) $(OBJY) $(YC) $(EXTS)
-rm -f $(OBJS:.o=.d) $(OBJY:.o=.d) $(EXTS:.o=.d)
+ -rm -f $(patsubst %.c,%.o,$(EXCEPT1)) $(patsubst %.c,%.d,$(EXCEPT1))
@echo "make: removing targets, objects and depend files of `pwd`"