mirror of
https://github.com/natnat-mc/moonbuild
synced 2026-06-16 11:59:39 +02:00
15 lines
400 B
MoonScript
15 lines
400 B
MoonScript
SOURCES_MOON = flatten {'bin/moonbuild.moon', wildcard 'moonbuild/**.moon'}
|
|
OUT_LUA = patsubst SOURCES_MOON, '%.moon', '%.lua'
|
|
|
|
public target 'clean', fn: =>
|
|
-rm '-f', OUT_LUA
|
|
|
|
public target 'info', fn: =>
|
|
#echo "Moonscript sources:", SOURCES_MOON
|
|
#echo "Compiled lua:", OUT_LUA
|
|
|
|
default target 'compile-lua', from: OUT_LUA
|
|
|
|
target '%.lua', in: '%.moon', out: '%.lua', fn: =>
|
|
-moonc @infile
|