Skip to content

Commit

Permalink
* lib/mkmf.rb (create_makefile): added phony targets.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 19, 2009
1 parent fb3fee2 commit 030eed8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Thu Feb 19 14:18:25 2009 Nobuyoshi Nakada <[email protected]>
Thu Feb 19 14:22:02 2009 Nobuyoshi Nakada <[email protected]>

* lib/mkmf.rb (create_makefile): added phony targets.

* lib/mkmf.rb (create_makefile): creates target directories before
copying. [ruby-core:21958]
Expand Down
6 changes: 5 additions & 1 deletion lib/mkmf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,8 @@ def dummy_makefile(srcdir)
DISTCLEANFILES = #{$distcleanfiles.join(' ')}
all install static install-so install-rb: Makefile
.PHONY: all install static install-so install-rb
.PHONY: clean clean-so clean-rb
RULES
end
Expand Down Expand Up @@ -1634,7 +1636,7 @@ def create_makefile(target, srcprefix = nil)
DISTCLEANFILES = #{$distcleanfiles.join(' ')}
DISTCLEANDIRS = #{$distcleandirs.join(' ')}
extout = #{$extout}
extout = #{$extout && $extout.quote}
extout_prefix = #{$extout_prefix}
target_prefix = #{target_prefix}
LOCAL_LIBS = #{$LOCAL_LIBS}
Expand All @@ -1657,6 +1659,8 @@ def create_makefile(target, srcprefix = nil)
all: #{$extout ? "install" : target ? "$(DLLIB)" : "Makefile"}
static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
.PHONY: all install static install-so install-rb
.PHONY: clean clean-so clean-rb
"
mfile.print CLEANINGS
fsep = config_string('BUILD_FILE_SEPARATOR') {|s| s unless s == "/"}
Expand Down

0 comments on commit 030eed8

Please sign in to comment.