summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-10-15 14:52:07 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-22 13:03:29 -0700
commit7993d05ac6251b06093f282becf75be7a8a49bd0 (patch)
tree4529eca94ac4873d3e529100f0718cf3f93ee1bc
parentd9f973371c1b607d1c3b1f6515aa1f7e47ff6735 (diff)
downloadchef-7993d05ac6251b06093f282becf75be7a8a49bd0.tar.gz
Add rake task at root to build eventlog dll
-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}"