diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-26 03:47:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-26 03:47:15 +0000 |
commit | 749ad16aa7015438a12686556d4567a7b295f27a (patch) | |
tree | 6303c256a6335acd90d65cee68f5b55a693870e4 /win32/Makefile.sub | |
parent | fd74e1414c76288af00b47517144244134e40cc4 (diff) |
* common.mk (pkgconfig-data): moved from Makefile.in.
* tool/rbinstall.rb: install pc file only if non-empty.
[ruby-core:32901] #3983
* win32/Makefile.sub (ruby_pc): create pc file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r-- | win32/Makefile.sub | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index b22a1334a7..6d654d90e7 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -339,6 +339,7 @@ VCSUP = $(VCS) rebase $(GITSVNREBASEOPTIONS) VCS = git VCSUP = $(VCS) pull $(GITPULLOPTIONS) !endif +ruby_pc = $(RUBY_BASE_NAME)-$(MAJOR).$(MINOR).pc all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk @@ -772,6 +773,7 @@ s,@configure_input@,$$configure_input,;t t s,@srcdir@,$(srcdir),;t t s,@top_srcdir@,$(srcdir),;t t s,@try_header@,try_compile,;t t +s,@ruby_pc@,$(ruby_pc),;t t <<KEEP miniruby: miniruby$(EXEEXT) @@ -896,6 +898,13 @@ class File end <<KEEP +$(ruby_pc): $(RBCONFIG) + @$(MINIRUBY) -rrbconfig -p \ + -e '$$_.gsub!(/@([a-z_]\w*)@/i) {' \ + -e 'RbConfig::MAKEFILE_CONFIG[$$1].gsub(/\$$\((.+?)\)/, %Q[$${\1}])' + -e '}' \ + $(srcdir)/template/ruby.pc.in > $@ + {$(srcdir)/enc}.c.obj: $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/) {$(srcdir)/missing}.c.obj: |