From fb0b931709d92ccfe3ac1bfe2f883cf36eda9e20 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 30 Dec 2002 10:16:53 +0000 Subject: * ext/extmk.rb: split --make argument contains options, assume the first word of --make-flags is always options even unless preceeded by -, and ignore letter-case of options if nmake. * instruby.rb: extract -n option also from --make and --make-flags. * bcc32/Makefile.sub, win32/Makefile.sub: not prepend - to $(MFLAGS) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/extmk.rb') diff --git a/ext/extmk.rb b/ext/extmk.rb index 3ff15514d7..5e86078d7b 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -105,8 +105,11 @@ getopts('', 'extstatic', 'make:', 'make-flags:') $force_static = $OPT['extstatic'] == 'static' $make = $OPT['make'] || $make $mflags = Shellwords.shellwords($OPT['make-flags'] || "") +$mflags[0].sub!(/^(?=\w+)$/, "-") unless mflags.empty? +$make, *$mflags[0, 0] = Shellwords.shellwords($make) mflags = $mflags.grep(/^-([^-].*)/) {$1}.join +mflags.downcase! if $nmake == ?m $continue = mflags.include?(?k) $dryrun = mflags.include?(?n) -- cgit v1.2.3