Sha256: 9af890872332fe240b85332272caeaf4504ce0e878d60b4c83d47635e87fbe45
Contents?: true
Size: 584 Bytes
Versions: 451
Compression:
Stored size: 584 Bytes
Contents
require 'rubygems' require 'rake' require 'fileutils' require 'rbconfig' BASENAME = "puppetres" task :default do sh 'rake -T' end desc 'Build puppet eventlog message dll' task :dist => ['out', "#{BASENAME}.dll"] directory 'out' rule '.rc' => '.mc' do |t| sh "mc -b -r out -h out #{t.source}" end rule '.res' => '.rc' do |t| sh "rc -nologo -r -fo out/#{t.name} out/#{t.source}" end rule '.dll' => '.res' do |t| sh "link -nologo -dll -noentry -machine:x86 -out:out/#{t.name} out/#{t.source}" end desc 'Delete generated files' task :clean do FileUtils.rm_rf('out') end
Version data entries
451 entries across 451 versions & 3 rubygems