Skip to content
Browse files

Updated Rakefile to use make vs nmake for mingw or cygwin.

  • Loading branch information...
1 parent e1bdc79 commit 5122f2f5ca445a3633d669d8a2cedcbeee787c62 @djberg96 committed Feb 24, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 Rakefile
View
5 Rakefile
@@ -15,9 +15,12 @@ CLEAN.include(
desc "Build the win32-service library"
task :build => [:clean] do
+ make = "nmake"
+ make = "make" if CONFIG['host_os'] =~ /mingw|cygwin/i
+
Dir.chdir('ext') do
ruby 'extconf.rb'
- sh 'nmake'
+ sh "#{make}"
FileUtils.cp('daemon.so', 'win32/daemon.so')
end
end

0 comments on commit 5122f2f

Please sign in to comment.
Something went wrong with that request. Please try again.