mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
common.mk: integrate clean targets
* common.mk (clean-rdoc, clean-capi, clean-platform): integrate from Makefile.in and win32/Makefile.sub. * win32/Makefile.sub (RMALL): now use rm.bat instead of rmall.bat which does not handle any options and convert slashes. * win32/rmall.bat: no longer used. use rm.bat with -r instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8572ed5c0d
commit
b1f4bf8aa2
4 changed files with 14 additions and 28 deletions
11
Makefile.in
11
Makefile.in
|
@ -425,17 +425,6 @@ clean-enc distclean-enc realclean-enc:
|
||||||
echo $(@:-enc=ing) encodings; \
|
echo $(@:-enc=ing) encodings; \
|
||||||
exec $(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
|
exec $(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
|
||||||
|
|
||||||
clean-rdoc distclean-rdoc realclean-rdoc:
|
|
||||||
@echo $(@:-rdoc=ing) rdoc
|
|
||||||
$(Q)$(RMALL) $(RDOCOUT)
|
|
||||||
clean-capi distclean-capi realclean-capi:
|
|
||||||
@echo $(@:-capi=ing) capi
|
|
||||||
$(Q)$(RMALL) $(CAPIOUT)
|
|
||||||
|
|
||||||
clean-platform:
|
|
||||||
@$(RM) $(PLATFORM_D)
|
|
||||||
-$(Q) $(RMDIR) $(PLATFORM_DIR) 2> /dev/null || true
|
|
||||||
|
|
||||||
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
|
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
|
||||||
$(ECHO) compiling $@
|
$(ECHO) compiling $@
|
||||||
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
|
||||||
|
|
12
common.mk
12
common.mk
|
@ -498,6 +498,18 @@ clean-ext distclean-ext realclean-ext::
|
||||||
|
|
||||||
clean-enc distclean-enc realclean-enc: PHONY
|
clean-enc distclean-enc realclean-enc: PHONY
|
||||||
|
|
||||||
|
clean-rdoc distclean-rdoc realclean-rdoc:
|
||||||
|
@echo $(@:-rdoc=ing) rdoc
|
||||||
|
$(Q)$(RMALL) $(RDOCOUT)
|
||||||
|
|
||||||
|
clean-capi distclean-capi realclean-capi:
|
||||||
|
@echo $(@:-capi=ing) capi
|
||||||
|
$(Q)$(RMALL) $(CAPIOUT)
|
||||||
|
|
||||||
|
clean-platform:
|
||||||
|
$(Q) $(RM) $(PLATFORM_D)
|
||||||
|
-$(Q) $(RMDIR) $(PLATFORM_DIR) 2> /dev/null || exit 0
|
||||||
|
|
||||||
check: main test test-all
|
check: main test test-all
|
||||||
$(ECHO) check succeeded
|
$(ECHO) check succeeded
|
||||||
check-ruby: test test-ruby
|
check-ruby: test test-ruby
|
||||||
|
|
|
@ -75,7 +75,7 @@ IFCHANGE = $(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat
|
||||||
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
||||||
RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
||||||
RMDIRS = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
RMDIRS = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
||||||
RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rmall.bat
|
RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat -r
|
||||||
MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat
|
MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat
|
||||||
CP = copy > nul
|
CP = copy > nul
|
||||||
MV = move > nul
|
MV = move > nul
|
||||||
|
@ -817,7 +817,7 @@ s,@SET_MAKE@,MFLAGS = -$$(MAKEFLAGS),;t t
|
||||||
s,@RM@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rm.bat,;t t
|
s,@RM@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rm.bat,;t t
|
||||||
s,@RMDIR@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rmdirs.bat,:t t
|
s,@RMDIR@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rmdirs.bat,:t t
|
||||||
s,@RMDIRS@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rmdirs.bat,;t t
|
s,@RMDIRS@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rmdirs.bat,;t t
|
||||||
s,@RMALL@,$$(COMSPEC) /C rmdir /s /q,;t t
|
s,@RMALL@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rm.bat -f -r,:t t
|
||||||
s,@MAKEDIRS@,$$(COMSPEC) /E:ON /C $$(top_srcdir:/=\)\win32\makedirs.bat,;t t
|
s,@MAKEDIRS@,$$(COMSPEC) /E:ON /C $$(top_srcdir:/=\)\win32\makedirs.bat,;t t
|
||||||
s,@LIBOBJS@,$(LIBOBJS),;t t
|
s,@LIBOBJS@,$(LIBOBJS),;t t
|
||||||
s,@ALLOCA@,$(ALLOCA),;t t
|
s,@ALLOCA@,$(ALLOCA),;t t
|
||||||
|
@ -1002,15 +1002,6 @@ distclean-local::
|
||||||
-$(Q)$(RM) $(INSTALLED_LIST:/=\) $(arch_hdrdir:/=\)\ruby\config.h verconf.h
|
-$(Q)$(RM) $(INSTALLED_LIST:/=\) $(arch_hdrdir:/=\)\ruby\config.h verconf.h
|
||||||
-$(Q)$(RMDIRS) $(arch_hdrdir:/=\)\ruby
|
-$(Q)$(RMDIRS) $(arch_hdrdir:/=\)\ruby
|
||||||
|
|
||||||
clean-rdoc distclean-rdoc realclean-rdoc:
|
|
||||||
-$(Q)$(RMALL) $(RDOCOUT:/=\)
|
|
||||||
clean-capi distclean-capi realclean-capi:
|
|
||||||
-$(Q)$(RMALL) $(CAPIOUT:/=\)
|
|
||||||
|
|
||||||
clean-platform:
|
|
||||||
$(Q)$(RM) $(PLATFORM_D:/=\)
|
|
||||||
-$(Q)$(RMDIR) $(PLATFORM_DIR:/=\)
|
|
||||||
|
|
||||||
clean-ext distclean-ext realclean-ext::
|
clean-ext distclean-ext realclean-ext::
|
||||||
!if "$(EXTS)" != ""
|
!if "$(EXTS)" != ""
|
||||||
@for %I in ($(EXTS)) \
|
@for %I in ($(EXTS)) \
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
@echo off
|
|
||||||
|
|
||||||
if "%1" == "" goto :end
|
|
||||||
if exist "%1" rmdir /s /q "%1"
|
|
||||||
|
|
||||||
:end
|
|
Loading…
Add table
Add a link
Reference in a new issue