Massive ackbuilder refactor --- cleaner and more expressive. Lists
are automatically flattened (leading to better build files), and the list and filename functions are vastly more orthogonal.
This commit is contained in:
@@ -8,13 +8,13 @@ definerule("tabgen",
|
||||
srcs = { type="targets" },
|
||||
},
|
||||
function(e)
|
||||
local symname = replace(basename(e.srcs[1]), "%.tab$", "")
|
||||
local symname = basename(filenamesof(e.srcs)[1]):gsub("%.tab$", "")
|
||||
|
||||
return normalrule {
|
||||
name = e.name,
|
||||
ins = {
|
||||
"util/cmisc+tabgen",
|
||||
unpack(e.srcs)
|
||||
e.srcs
|
||||
},
|
||||
outleaves = { symname..".c" },
|
||||
commands = {
|
||||
|
||||
Reference in New Issue
Block a user