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

@@ -1,4 +1,3 @@
local posix = require("posix")
include("util/LLgen/build.lua")
normalrule {
@@ -13,7 +12,7 @@ normalrule {
}
}
local str_files = basename(posix.glob(cwd().."/*.str"))
local str_files = basename(filenamesof("./*.str"))
local str_targets = {}
for _, f in ipairs(str_files) do
@@ -46,7 +45,7 @@ clibrary {
hdrs = str_targets,
deps = {
"+parameters",
unpack(str_targets)
str_targets
}
}