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

@@ -12,11 +12,11 @@ local cgglexer = flex {
normalrule {
name = "keywords",
ins = concat(
ins = {
"./cvtkeywords",
"./keywords",
filenamesof({cggparser}, "%.h$")
),
matching(filenamesof(cggparser), "%.h$")
},
outleaves = { "enterkeyw.c" },
commands = {
"%{ins[1]} %{ins[2]} %{ins[3]} %{outs[1]}"
@@ -27,8 +27,8 @@ cprogram {
name = "ncgg",
srcs = concat(
"./*.c",
filenamesof({cggparser}, "%.c$"),
filenamesof({cgglexer}, "%.c$"),
matching(filenamesof(cggparser), "%.c$"),
matching(filenamesof(cgglexer), "%.c$"),
"+keywords"
),
deps = {