tag:blogger.com,1999:blog-22641314.post8827410976060723073..comments2008-04-14T19:05:28.804-07:00Comments on Clever Title Pending: Building Erlang with RakeSean Geogheganhttp://www.blogger.com/profile/00647947610695016991noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-22641314.post-9944080303942241532008-03-24T14:40:00.000-07:002008-03-24T14:40:00.000-07:00Thanks for the Makefile!Just a note (and for futur...Thanks for the Makefile!<BR/><BR/>Just a note (and for future readers), it works fine with rake 0.7.3, but didn't work for me with rake 0.7.1...Benjamin Nortierhttp://www.blogger.com/profile/08367037948708558905noreply@blogger.comtag:blogger.com,1999:blog-22641314.post-21998669516399442472007-11-12T09:51:00.000-08:002007-11-12T09:51:00.000-08:00I have also used Rake with erlang.Here is what I c...I have also used Rake with erlang.<BR/>Here is what I came up with when I need to rebuild eunit.<BR/>========================<BR/>require 'rake/clean'<BR/>CLOBBER.include 'ebin'<BR/>SRC_TO_BIN = [/src(\/.*\.)erl/,'ebin\1beam']<BR/>BIN_TO_SRC = [/ebin(\/.*\.)beam/,'src\1erl']<BR/><BR/>beams = ['ebin'] + FileList.new('src/*.erl').gsub(*SRC_TO_BIN)<BR/>task :default => beams<BR/>directory 'ebin'<BR/><BR/>rule(%r{^ebin/.*\.beam$} => lambda { |fn| fn.gsub(*BIN_TO_SRC) }) do |t|<BR/> `erlc -pa ebin -Iinclude +warn_unused_vars +nowarn_shadow_vars +warn_unused_import -oebin #{t.source}`<BR/>end<BR/>========================<BR/>-- Mike BerrowAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-22641314.post-72302725049034304132007-10-04T15:52:00.000-07:002007-10-04T15:52:00.000-07:00Thanks for that. There was a bug in the compile d...Thanks for that. There was a bug in the compile dependencies that caused problems when builing many files after a clean. It should work now.<BR/><BR/>I fixed this a while ago but forgot to update my blog post so thanks for reminding me.Sean Geogheganhttp://www.blogger.com/profile/00647947610695016991noreply@blogger.comtag:blogger.com,1999:blog-22641314.post-43222738696506765412007-10-04T08:54:00.000-07:002007-10-04T08:54:00.000-07:00Sorry, but:** Invoke compile (first_time)** Invoke...Sorry, but:<BR/><BR/>** Invoke compile (first_time)<BR/>** Invoke ebin (first_time, not_needed)<BR/>rake aborted!<BR/>Don't know how to build task 'ebin/shop1.beam ebin/shop.beam ebin/geom.beam'Jean-Baptiste Quenothttp://caraldi.com/jbq/noreply@blogger.com