summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile12
-rw-r--r--ext/win32-eventlog/Rakefile3
2 files changed, 14 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index b55ed8321b..70a45d94c0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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}"