diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-15 14:52:07 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-22 13:03:29 -0700 |
commit | 7993d05ac6251b06093f282becf75be7a8a49bd0 (patch) | |
tree | 4529eca94ac4873d3e529100f0718cf3f93ee1bc | |
parent | d9f973371c1b607d1c3b1f6515aa1f7e47ff6735 (diff) | |
download | chef-7993d05ac6251b06093f282becf75be7a8a49bd0.tar.gz |
Add rake task at root to build eventlog dll
-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}" |