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

@@ -16,7 +16,7 @@ definerule("ackfile",
"plat/"..plat.."+tools",
"util/ack+pkg",
"lang/cem/cpp.ansi+pkg",
unpack(e.deps)
e.deps
},
commands = {
"ACKDIR=$(INSDIR) $(INSDIR)/bin/ack -m%{plat} -c -o %{outs} %{ins} %{hdrpaths} %{ackcflags}"
@@ -38,10 +38,11 @@ definerule("acklibrary",
hdrs = e.hdrs,
deps = {
"util/arch+pkg",
unpack(e.deps)
e.deps
},
_cfile = ackfile,
commands = {
"rm -f %{outs[1]}",
"ACKDIR=$(INSDIR) $(INSDIR)/bin/aal q %{outs[1]} %{ins}"
}
}