summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-19 06:47:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-19 06:47:13 +0000
commitc694e5e1456a240621a982c4ed48f08472a83bd7 (patch)
treecef668c8cf7931b051f9bafd902e9bc8c7fd1ae2 /Makefile.in
parent486212eb0be5f7b897d6208c0be2add2cda17f8a (diff)
downloadruby-c694e5e1456a240621a982c4ed48f08472a83bd7.tar.gz
ruby-c694e5e1456a240621a982c4ed48f08472a83bd7.tar.xz
ruby-c694e5e1456a240621a982c4ed48f08472a83bd7.zip
* template/fake.rb.in: extracted from Makefile.in.
* configure.in (fake.rb): prefixed with $(arch)-. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in20
1 files changed, 4 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in
index afa172bf1..7549a6e62 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -26,6 +26,7 @@ datadir = @datadir@
arch = @arch@
sitearch = @sitearch@
sitedir = @sitedir@
+ruby_version = @ruby_version@
TESTUI = console
TESTS =
@@ -149,22 +150,9 @@ $(LIBRUBY_SO):
File.symlink "$(LIBRUBY_SO)", link}' \
$(LIBRUBY_ALIASES) || true
-fake.rb: Makefile
- @echo ' \
- class Object; \
- CROSS_COMPILING = RUBY_PLATFORM; \
- remove_const :RUBY_PLATFORM; \
- remove_const :RUBY_VERSION; \
- RUBY_PLATFORM = "@arch@"; \
- RUBY_VERSION = "@MAJOR@.@MINOR@.@TEENY@"; \
- end; \
- if RUBY_PLATFORM =~ /mswin|bccwin|mingw/; \
- class File; \
- remove_const :ALT_SEPARATOR; \
- ALT_SEPARATOR = "\\"; \
- end; \
- end; \
- ' > $@
+fake: $(arch)-fake.rb
+$(arch)-fake.rb: config.status
+ @./config.status --file=$@:$(srcdir)/template/fake.rb.in
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in