1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* common.mk (showflags, help): use caret to quote leading spaces on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-11-12 11:52:45 +00:00
parent fd7c0279f8
commit fe2295ea75
4 changed files with 42 additions and 35 deletions

View file

@ -1,4 +1,6 @@
Fri Nov 12 20:51:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Nov 12 20:52:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (showflags, help): use caret to quote leading spaces on Windows.
* Makefile.in, common.mk, cygwin/GNUmakefile.in, enc/depend, * Makefile.in, common.mk, cygwin/GNUmakefile.in, enc/depend,
ext/ripper/depend, lib/mkmf.rb, win32/Makefile.sub: caddle up. ext/ripper/depend, lib/mkmf.rb, win32/Makefile.sub: caddle up.

View file

@ -142,6 +142,8 @@ INSTALLED_LIST= .installed.list
MKMAIN_CMD = mkmain.sh MKMAIN_CMD = mkmain.sh
SRC_FILE = $< SRC_FILE = $<
MSG = @echo "
EOM = "
#### End of variables #### End of variables
all: all:

View file

@ -142,11 +142,11 @@ main: showflags encs exts
.PHONY: showflags .PHONY: showflags
exts enc trans: showflags exts enc trans: showflags
showflags: showflags:
@echo " CFLAGS = $(CFLAGS)" $(MSG) CFLAGS = $(CFLAGS)$(EOM)
@echo " XCFLAGS = $(XCFLAGS)" $(MSG) XCFLAGS = $(XCFLAGS)$(EOM)
@echo " CPPFLAGS = $(CPPFLAGS)" $(MSG) CPPFLAGS = $(CPPFLAGS)$(EOM)
@echo " DLDFLAGS = $(DLDFLAGS)" $(MSG) DLDFLAGS = $(DLDFLAGS)$(EOM)
@echo " SOLIBS = $(SOLIBS)" $(MSG) SOLIBS = $(SOLIBS)$(EOM)
exts: $(MKMAIN_CMD) exts: $(MKMAIN_CMD)
@ -872,32 +872,32 @@ change: PHONY
$(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log $(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log
help: PHONY help: PHONY
@echo " Makefile of Ruby" $(MSG) Makefile of Ruby$(EOM)
@echo "" $(MSG)$(EOM)
@echo "targets:" $(MSG)targets:$(EOM)
@echo " all (default): builds all of below" $(MSG) all (default): builds all of below$(EOM)
@echo " miniruby: builds only miniruby" $(MSG) miniruby: builds only miniruby$(EOM)
@echo " encs: builds encodings" $(MSG) encs: builds encodings$(EOM)
@echo " exts: builds extensions" $(MSG) exts: builds extensions$(EOM)
@echo " main: builds encodings, extensions and ruby" $(MSG) main: builds encodings, extensions and ruby$(EOM)
@echo " docs: builds documents" $(MSG) docs: builds documents$(EOM)
@echo " run: runs test.rb by miniruby" $(MSG) run: runs test.rb by miniruby$(EOM)
@echo " runruby: runs test.rb by ruby you just built" $(MSG) runruby: runs test.rb by ruby you just built$(EOM)
@echo " gdb: runs test.rb by miniruby under gdb" $(MSG) gdb: runs test.rb by miniruby under gdb$(EOM)
@echo " gdb-ruby: runs test.rb by ruby under gdb" $(MSG) gdb-ruby: runs test.rb by ruby under gdb$(EOM)
@echo " check: equals make test test-all" $(MSG) check: equals make test test-all$(EOM)
@echo " test: ruby core tests" $(MSG) test: ruby core tests$(EOM)
@echo " test-all: all ruby tests" $(MSG) test-all: all ruby tests$(EOM)
@echo " test-rubyspec run RubySpec test suite" $(MSG) test-rubyspec run RubySpec test suite$(EOM)
@echo " update-rubyspec update local copy of RubySpec" $(MSG) update-rubyspec update local copy of RubySpec$(EOM)
@echo " benchmark benchmark this ruby and COMPARE_RUBY" $(MSG) benchmark benchmark this ruby and COMPARE_RUBY$(EOM)
@echo " install: install all ruby distributions" $(MSG) install: install all ruby distributions$(EOM)
@echo " install-nodoc: install without rdoc" $(MSG) install-nodoc: install without rdoc$(EOM)
@echo " install-cross: install cross compiling staff" $(MSG) install-cross: install cross compiling staff$(EOM)
@echo " clean: clean for tarball" $(MSG) clean: clean for tarball$(EOM)
@echo " distclean: clean for repo" $(MSG) distclean: clean for repo$(EOM)
@echo " change: make change log template" $(MSG) change: make change log template$(EOM)
@echo " golf: for golfers" $(MSG) golf: for golfers$(EOM)
@echo "" $(MSG)$(EOM)
@echo "see DeveloperHowto for more detail: " $(MSG)see DeveloperHowto for more detail: $(EOM)
@echo " http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto" $(MSG) http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto$(EOM)

View file

@ -341,6 +341,9 @@ VCSUP = $(VCS) pull $(GITPULLOPTIONS)
!endif !endif
ruby_pc = $(RUBY_BASE_NAME)-$(MAJOR).$(MINOR).pc ruby_pc = $(RUBY_BASE_NAME)-$(MAJOR).$(MINOR).pc
MSG = echo ^
EOM =
all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk
ruby: $(PROGRAM) ruby: $(PROGRAM)