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:
David Given
2016-08-04 23:51:19 +02:00
parent b2bb4ce3b2
commit 5e84be70fd
11 changed files with 198 additions and 149 deletions

View File

@@ -9,9 +9,9 @@ local allocd_header = definerule(null,
name = e.name,
ins = {
"./make.allocd",
unpack(e.srcs)
e.srcs
},
outleaves = replace(basename(e.srcs), "%.str$", ".h"),
outleaves = basename(filenamesof(e.srcs)[1]):gsub("%.str$", ".h"),
commands = {
"%{ins[1]} < %{ins[2]} > %{outs}"
}
@@ -82,7 +82,7 @@ cprogram {
name = "cpp",
srcs = concat(
"./*.c",
filenamesof(llgen, "%.c$"),
matching(filenamesof(llgen), "%.c$"),
"+next_c",
"+symbol2str_c",
"+tabgen_c"