diff options
-rw-r--r-- | Rakefile | 12 | ||||
-rw-r--r-- | ext/win32-eventlog/Rakefile | 3 |
2 files changed, 14 insertions, 1 deletions
@@ -52,6 +52,18 @@ task :pedant do require File.expand_path('spec/support/pedant/run_pedant') end +task :build_eventlog do + Dir.chdir 'ext/win32-eventlog/' do + system 'rake build' + end +end + +task :register_eventlog do + Dir.chdir 'ext/win32-eventlog/' do + system 'rake register' + end +end + begin require 'yard' DOC_FILES = [ "README.rdoc", "LICENSE", "spec/tiny_server.rb", "lib/**/*.rb" ] diff --git a/ext/win32-eventlog/Rakefile b/ext/win32-eventlog/Rakefile index 0200783433..eaa0c81994 100644 --- a/ext/win32-eventlog/Rakefile +++ b/ext/win32-eventlog/Rakefile @@ -24,7 +24,8 @@ CC = 'gcc' ensure_present [MC, RC, CC] -task :default => [EVT_RESOURCE_OBJECT, EVT_SHARED_OBJECT, :register] +task :build => [EVT_RESOURCE_OBJECT, EVT_SHARED_OBJECT] +task :default => [:build, :register] file EVT_RC_FILE=> EVT_MC_FILE do sh "#{MC} #{EVT_MC_FILE}" |