diff core/src/luan/modules/mmake.luan @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents 6fd016d35ec1
children 9767da72545b
line wrap: on
line diff
--- a/core/src/luan/modules/mmake.luan	Tue May 19 17:57:20 2015 -0600
+++ b/core/src/luan/modules/mmake.luan	Wed May 20 23:24:46 2015 -0600
@@ -7,9 +7,23 @@
 local Time = require "luan:Time"
 
 
-compiler = Table.concat( { "javac -g -encoding UTF8", ... }, " " )
+local compiler = Table.concat( { "javac -g -encoding UTF8", ... }, " " )
+
+
+local function header()
+	return 	%>
+# Makefile created on <%=Time.format(Time.now())%> by Mmake
+
+.SUFFIXES: .java .class
 
-function mmake(dir)
+.java.class:
+	<%=compiler%> $<
+
+all: <%
+end
+
+
+local function mmake(dir)
 	local javas = {}
 	local dirs = {}
 	for _, file in ipairs(dir.children()) do
@@ -41,17 +55,4 @@
 	return true
 end
 
-
-function header()
-	return 	%>
-# Makefile created on <%=Time.format(Time.now())%> by Mmake
-
-.SUFFIXES: .java .class
-
-.java.class:
-	<%=compiler%> $<
-
-all: <%
-end
-
 mmake(Io.schemes.file ".")