Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rake/clean'
- CLOBBER.include('src/*.o','src/*.cf')
- namespace :tests do
- rule '.o' => '.vhdl' do |t|
- sh "ghdl -a #{t.source}"
- end
- testbenches = FileList['src/*tb.vhdl']
- desc "Build and run all tests"
- components = ['src/adder','src/junk']
- sources = components.collect{|name| name+".o"}
- task :run => sources do
- end
- end
Add Comment
Please, Sign In to add comment