|
|
@ -24,13 +24,13 @@ with public target 'install' |
|
|
|
with public target 'install-bin' |
|
|
|
with public target 'install-bin' |
|
|
|
\depends BIN |
|
|
|
\depends BIN |
|
|
|
\produces _.patsubst BIN, 'out/%', '/usr/local/bin/%' |
|
|
|
\produces _.patsubst BIN, 'out/%', '/usr/local/bin/%' |
|
|
|
\fn => _.cmd 'sudo', 'cp', @infile, @outfile |
|
|
|
\fn => _.cmd 'sudo', 'cp', @infile, @out |
|
|
|
\sync! |
|
|
|
\sync! |
|
|
|
|
|
|
|
|
|
|
|
with public target 'install-lib' |
|
|
|
with public target 'install-lib' |
|
|
|
\depends LIB |
|
|
|
\depends LIB |
|
|
|
\produces "/usr/local/share/lua/#{LUA\gsub 'lua', ''}/moonbuild.lua" |
|
|
|
\produces "/usr/local/share/lua/#{LUA\gsub 'lua', ''}/moonbuild.lua" |
|
|
|
\fn => _.cmd 'sudo', 'cp', @infile, @outfile |
|
|
|
\fn => _.cmd 'sudo', 'cp', @infile, @out |
|
|
|
\sync! |
|
|
|
\sync! |
|
|
|
|
|
|
|
|
|
|
|
with public target 'clean' |
|
|
|
with public target 'clean' |
|
|
@ -52,16 +52,16 @@ with target BIN, pattern: 'out/%' |
|
|
|
\produces 'out/%' |
|
|
|
\produces 'out/%' |
|
|
|
\mkdirs! |
|
|
|
\mkdirs! |
|
|
|
\fn => |
|
|
|
\fn => |
|
|
|
_.writefile @outfile, "#!/usr/bin/env #{LUA}\n#{_.readfile @infile}" |
|
|
|
_.writefile @out, "#!/usr/bin/env #{LUA}\n#{_.readfile @infile}" |
|
|
|
_.cmd 'chmod', '+x', @outfile |
|
|
|
_.cmd 'chmod', '+x', @out |
|
|
|
|
|
|
|
|
|
|
|
with target LIB |
|
|
|
with target LIB |
|
|
|
\depends 'moonbuild/init.lua' |
|
|
|
\depends 'moonbuild/init.lua' |
|
|
|
\depends LIB_LUA |
|
|
|
\depends LIB_LUA |
|
|
|
\produces '%' |
|
|
|
\produces '%' |
|
|
|
\fn => _.cmd AMALG, '-o', @outfile, '-s', @infile, _.exclude MODULES, 'moonbuild.init' |
|
|
|
\fn => _.cmd AMALG, '-o', @out, '-s', @infile, _.exclude MODULES, 'moonbuild.init' |
|
|
|
|
|
|
|
|
|
|
|
with target {LIB_LUA, BIN_LUA}, pattern: '%.lua' |
|
|
|
with target {LIB_LUA, BIN_LUA}, pattern: '%.lua' |
|
|
|
\depends '%.moon' |
|
|
|
\depends '%.moon' |
|
|
|
\produces '%.lua' |
|
|
|
\produces '%.lua' |
|
|
|
\fn => _.moonc @infile, @outfile |
|
|
|
\fn => _.moonc @infile, @out |
|
|
|