ext/extconf.rb in sunscraper-1.0.0 vs ext/extconf.rb in sunscraper-1.1.0.beta1

- old
+ new

@@ -1,9 +1,19 @@ # This Makefile will get replaced by qmake. +if Gem.win_platform? + qmake = %{qmake -spec win32-g++} +elsif RUBY_PLATFORM =~ /darwin/i || RbConfig::CONFIG['target_os'] == 'darwin' + qmake = %{qmake -spec macx-g++} +else + qmake = %{qmake} +end + File.open("Makefile", "w") do |mf| mf.puts <<-ENDM all: - qmake - make + cd embed; #{qmake} + cd standalone; #{qmake} + make -C embed + make -C standalone ENDM -end \ No newline at end of file +end