mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
makes possible to add files to clean and distclean targets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d67106c081
commit
c80a51e89f
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 21 20:29:31 2003 Michal Rokos <michal@rokos.homeip.net>
|
||||
|
||||
* mkmf.rb: make possible to add files to clean and distclean targets
|
||||
|
||||
Tue Jan 21 18:05:25 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* bcc32/Makefile.sub (LIBRUBY_A): link dmyext.
|
||||
|
|
13
lib/mkmf.rb
13
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue