changeset 1385:4d6c1bb8f975

fix mmake
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 22 Aug 2019 11:56:25 -0600
parents f5368cd8c056
children dc36dd8bf839
files src/luan/modules/mmake.luan
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/mmake.luan	Thu Aug 15 14:33:35 2019 -0600
+++ b/src/luan/modules/mmake.luan	Thu Aug 22 11:56:25 2019 -0600
@@ -3,6 +3,7 @@
 local Table = require "luan:Table.luan"
 local Io = require "luan:Io.luan"
 local print = Io.print
+local output_to = Io.output_to
 local String = require "luan:String.luan"
 local Time = require "luan:Time.luan"
 
@@ -11,7 +12,7 @@
 
 
 local function header()
-	return 	%>
+%>
 # Makefile created on <%=Time.format(Time.now())%> by Mmake
 
 .SUFFIXES: .java .class
@@ -39,7 +40,7 @@
 		return false;
 	end
 	local out = dir.child("Makefile").text_writer()
-	out.write( header() )
+	output_to(out,header)
 	for _, s in ipairs(javas) do
 		s = String.gsub(s,[[\$]],[[\$\$]])
 		out.write( "\\\n\t\t",  s , ".class" )