rakelib/compile.rake
branchstx-8.0.0
changeset 232 85c422506875
parent 204 1467c3e7c059
child 234 05943c900d5e
equal deleted inserted replaced
227:640f942d4e63 232:85c422506875
   145 
   145 
   146   file STX_CONF_DIR / 'stx-config.make' => STX_CONF_DIR  do
   146   file STX_CONF_DIR / 'stx-config.make' => STX_CONF_DIR  do
   147     makelib_dir = Pathname.new(File.expand_path('makelib')).relative_path_from(Pathname.new(BUILD_DIR / 'stx' ))
   147     makelib_dir = Pathname.new(File.expand_path('makelib')).relative_path_from(Pathname.new(BUILD_DIR / 'stx' ))
   148     File.open(STX_CONF_DIR / 'stx-config.make', 'w') do | f |
   148     File.open(STX_CONF_DIR / 'stx-config.make', 'w') do | f |
   149       f.puts "BUILD_TARGET ?= #{BUILD_TARGET}"
   149       f.puts "BUILD_TARGET ?= #{BUILD_TARGET}"
       
   150       if defined? CC 
       
   151         f.puts "CC ?= #{CC}"
       
   152       end
   150     end
   153     end
   151   end
   154   end
   152 
   155 
   153   rule 'makefile' do |t|
   156   rule 'makefile' do |t|
   154     chdir File.dirname(t.name) do
   157     chdir File.dirname(t.name) do