comparison core/src/luan/modules/mmake.luan @ 648:e387e4021afe

start compiler with len operator
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 30 Mar 2016 19:40:48 -0600
parents 35dde32c02ab
children ca169567ce07
comparison
equal deleted inserted replaced
647:8e8c30b72e9b 648:e387e4021afe
15 # Makefile created on <%=Time.format(Time.now())%> by Mmake 15 # Makefile created on <%=Time.format(Time.now())%> by Mmake
16 16
17 .SUFFIXES: .java .class 17 .SUFFIXES: .java .class
18 18
19 .java.class: 19 .java.class:
20 <%=compiler%> $< 20 <%=compiler%> '$<'
21 21
22 all: <% 22 all: <%
23 end 23 end
24 24
25 25
39 return false; 39 return false;
40 end 40 end
41 local out = dir.child("Makefile").text_writer() 41 local out = dir.child("Makefile").text_writer()
42 out.write( header() ) 42 out.write( header() )
43 for _, s in ipairs(javas) do 43 for _, s in ipairs(javas) do
44 s = String.gsub(s,[[\$]],[[\$\$]])
44 out.write( "\\\n\t\t", s , ".class" ) 45 out.write( "\\\n\t\t", s , ".class" )
45 end 46 end
46 for _, s in ipairs(dirs) do 47 for _, s in ipairs(dirs) do
47 out.write( "\n\tcd ", s, "; make all" ) 48 out.write( "\n\tcd ", s, "; make all" )
48 end 49 end