COGEN=ruby gen/cogen.rb -l GENDEPS=gen/*.rb tmpl/*.c <% srcs = %w[s d c z].map{|c| [c, "lapack_#{c}.c"]} srcs.each do |c,s| %> <%=s%>: $(GENDEPS) $(COGEN) -o $@ <%=c%> <% end %> GENSRC=<%= srcs.map{|x| x[1]}.join(" ") %> src : lapack.c $(GENSRC) doc : $(GENSRC) yard doc -m markdown $(GENSRC) clean: cleansrc cleandoc cleansrc: -$(Q)$(RM) $(GENSRC) cleandoc: -$(Q)$(RM_RF) doc .yardoc