A compromise between the speed of make and the ease of use of a build script
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
moonbuild/Build.moon

14 lines
400 B

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