Permalink
Browse files

Simplify logic for constructing Reia's build rules

  • Loading branch information...
1 parent f9512b1 commit be0480800d085b39d01365673fc1f64aa07d6125 Tony Arcieri committed Nov 29, 2009
Showing with 3 additions and 9 deletions.
  1. +3 −9 Rakefile
View
12 Rakefile
@@ -65,16 +65,10 @@ ERL_SRC = (FileList.new('src/{compiler,core}/**/*.erl') + GENERATED_SRC).uniq
QUIET_SRC = %w(src/compiler/reia_parse.erl)
ERL_SRC.each do |input|
- unless QUIET_SRC.include? input
- file output_file(input) => input do
- sh "erlc +debug_info -o ebin #{input}"
- end
- end
-end
-
-QUIET_SRC.each do |input|
file output_file(input) => input do
- sh "erlc -o ebin #{input}"
+ opts = ""
+ opts << "+debug_info" unless QUIET_SRC.include? input
+ sh "erlc #{opts} -o ebin #{input}"
end
end

0 comments on commit be04808

Please sign in to comment.