diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-23 05:32:01 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-23 05:32:01 +0000 |
| commit | b0dc76ad9f87407deb8ba21eeac2f6e08ecab32e (patch) | |
| tree | f646169c2368463a264425eae104519995a29a98 /ext | |
| parent | 425b9621c8a4e569a55a67c67f1a418245068639 (diff) | |
| download | ruby-b0dc76ad9f87407deb8ba21eeac2f6e08ecab32e.tar.gz ruby-b0dc76ad9f87407deb8ba21eeac2f6e08ecab32e.tar.xz ruby-b0dc76ad9f87407deb8ba21eeac2f6e08ecab32e.zip | |
* Makefile.in, */Makefile.sub, common.mk (clean-local, distclean-local):
separate files under directories due to directory separator.
* */Makefile.sub (MKFILES): common.mk and */Makefile.sub should not be
removed.
* win32/Makefile.sub, wince/Makefile.sub: $* cannot appear in explicit
rules.
* cygwin/GNUmakefile.in: some mingw stuffs were missed.
* lib/mkmf.rb (create_makefile): Borland make wrongly removes braces
from command lines.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 4abe6a119..94c091728 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -116,6 +116,9 @@ def extmake(target) unless system($make, *args) $ignore or $continue or return false end + if $clean and $clean != true + File.unlink(makefile) rescue nil + end if $static $extflags ||= "" $extlibs ||= [] @@ -215,11 +218,11 @@ parse_args() if target = ARGV.shift and /^[a-z-]+$/ =~ target $mflags.push(target) - target = target.sub(/^(?:dist|real)(?=(?:clean)?$)/, '\1') + target = target.sub(/^(dist|real)(?=(?:clean)?$)/, '') case target when /clean/ $ignore ||= true - $clean = true + $clean = $1 ? $1[0] : true when /^install\b/ $install = true $ignore ||= true |
