diff 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
line wrap: on
line diff
--- a/core/src/luan/modules/mmake.luan	Tue Mar 29 20:39:14 2016 -0600
+++ b/core/src/luan/modules/mmake.luan	Wed Mar 30 19:40:48 2016 -0600
@@ -17,7 +17,7 @@
 .SUFFIXES: .java .class
 
 .java.class:
-	<%=compiler%> $<
+	<%=compiler%> '$<'
 
 all: <%
 end
@@ -41,6 +41,7 @@
 	local out = dir.child("Makefile").text_writer()
 	out.write( header() )
 	for _, s in ipairs(javas) do
+		s = String.gsub(s,[[\$]],[[\$\$]])
 		out.write( "\\\n\t\t",  s , ".class" )
 	end
 	for _, s in ipairs(dirs) do