diff options
| author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-21 19:33:19 +0000 |
|---|---|---|
| committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-21 19:33:19 +0000 |
| commit | 0c39e263ade8f892d4e951ffb0a0cbf97008c362 (patch) | |
| tree | 7b410fdaef5852d4f37999c689ce2669deeb9790 /lib | |
| parent | 5791cfacac4d1e3cbb3043e3607ac93c89bd6745 (diff) | |
| download | ruby-0c39e263ade8f892d4e951ffb0a0cbf97008c362.tar.gz ruby-0c39e263ade8f892d4e951ffb0a0cbf97008c362.tar.xz ruby-0c39e263ade8f892d4e951ffb0a0cbf97008c362.zip | |
makes possible to add files to clean and distclean targets
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mkmf.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 8479da5df..df518c193 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -639,8 +639,6 @@ def create_makefile(target, srcprefix = nil) target = nil if $objs == "" - cleanfiles = [] - distcleanfiles = [] if target and EXPORT_PREFIX origdef = target + '.def' deffile = EXPORT_PREFIX + origdef @@ -665,7 +663,7 @@ def create_makefile(target, srcprefix = nil) end end end - distcleanfiles << deffile unless deffile == origdef + $distcleanfiles << deffile unless deffile == origdef end libpath = libpathflag(libpath) @@ -677,8 +675,8 @@ def create_makefile(target, srcprefix = nil) LIBPATH = #{libpath} DEFFILE = #{deffile} -CLEANFILES = #{cleanfiles.join(' ')} -DISTCLEANFILES = #{distcleanfiles.join(' ')} +CLEANFILES = #{$cleanfiles.join(' ')} +DISTCLEANFILES = #{$distcleanfiles.join(' ')} target_prefix = #{target_prefix} LOCAL_LIBS = #{$LOCAL_LIBS} @@ -809,11 +807,14 @@ def init_mkmf(config = CONFIG) end $LOCAL_LIBS = "" + + $cleanfiles = [] + $distcleanfiles = [] + dir_config("opt") end init_mkmf -dir_config("opt") $make = with_config("make-prog", ENV["MAKE"] || "make") make, = Shellwords.shellwords($make) |
