summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-19 13:10:25 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-19 13:10:25 +0000
commit4a028d2c7ea9c00fef49844127fffaa6d8ed6ec0 (patch)
tree454d91e4697d424eb05c987d5fe24b9a4d8e7bcb /common.mk
parente8291588c992571af4fc545f14da75cfd910c92a (diff)
downloadruby-4a028d2c7ea9c00fef49844127fffaa6d8ed6ec0.tar.gz
* common.mk (clean): removes all documents on cleaning.o
(CAPIOUT): new variable. (clean-capi, distclean-capi, realclean-capi): new targets * Makefile.in (clean-capi, distclean-capi, realclean-capi): ditto. * win32/Makefile.sub (clean-capi, distclean-capi, realclean-capi): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/common.mk b/common.mk
index 47b6658e75..34aa182a9a 100644
--- a/common.mk
+++ b/common.mk
@@ -18,6 +18,7 @@ RBCONFIG = ./.rbconfig.time
LIBRUBY_EXTS = ./.libruby-with-ext.time
REVISION_H = ./.revision.time
RDOCOUT = $(EXTOUT)/rdoc
+CAPIOUT = doc/capi
ID_H_TARGET = -id.h-
DMYEXT = dmyext.$(OBJEXT)
@@ -148,11 +149,11 @@ miniruby$(EXEEXT): config.status $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DM
GORUBY = go$(RUBY_INSTALL_NAME)
golf: $(LIBRUBY) $(GOLFOBJS) PHONY
$(MAKE) $(MFLAGS) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
-capi: doc/capi/.timestamp PHONY
+capi: $(CAPIOUT)/.timestamp PHONY
doc/capi/.timestamp: Doxyfile $(PREP)
@$(MAKEDIRS) doc/capi
@$(DOXYGEN) -b
- $(MINIRUBY) -e 'File.open("doc/capi/.timestamp", "w"){|f| f.puts(Time.now)}'
+ $(MINIRUBY) -e 'File.open("$(CAPIOUT)/.timestamp", "w"){|f| f.puts(Time.now)}'
Doxyfile: $(srcdir)/template/Doxyfile.tmpl $(PREP) $(srcdir)/tool/generic_erb.rb $(RBCONFIG)
$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ $(srcdir)/template/Doxyfile.tmpl \
@@ -372,7 +373,7 @@ install-prereq: $(CLEAR_INSTALLED_LIST) PHONY
clear-installed-list: PHONY
@> $(INSTALLED_LIST) set MAKE="$(MAKE)"
-clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-extout
+clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-capi clean-extout
clean-local:: PHONY
@$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
@$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
@@ -381,7 +382,9 @@ clean-ext:: PHONY
clean-golf: PHONY
@$(RM) $(GORUBY)$(EXEEXT) $(GOLFOBJS)
clean-rdoc: PHONY
+clean-capi: PHONY
clean-extout: PHONY
+clean-docs: clean-rdoc clean-capi
distclean: distclean-ext distclean-local distclean-enc distclean-golf distclean-extout
distclean-local:: clean-local
@@ -392,6 +395,7 @@ distclean-ext:: PHONY
distclean-golf: clean-golf
@$(RM) $(GOLFPRELUDES)
distclean-rdoc: PHONY
+distclean-capi: PHONY
distclean-extout: clean-extout
realclean:: realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
@@ -399,6 +403,7 @@ realclean-local:: distclean-local
@$(RM) parse.c parse.h lex.c newline.c revision.h
realclean-ext::
realclean-golf: distclean-golf
+realclean-capi: PHONY
realclean-extout: distclean-extout
clean-enc distclean-enc realclean-enc: PHONY