ack/util/ack/build.lua
George Koehler 7b3f870f63 Don't build mktables.c in the ack binary.
It only worked by accident because main() in main.c was found before
main() in mktables.c.

Also add build dependencies on the local *.h files.
2016-11-11 17:06:25 -05:00

54 lines
760 B
Lua

cprogram {
name = "mktables",
srcs = { "./mktables.c" },
}
normalrule {
name = "tables",
outleaves = { "dmach.c", "intable.c" },
ins = {
"+mktables",
"lib/descr/fe",
},
commands = {
"(cd %{dir} && %{abspath(ins[1])} lib)"
}
}
cprogram {
name = "ack",
srcs = {
"./data.c",
"./files.c",
"./grows.c",
"./list.c",
"./main.c",
"./rmach.c",
"./run.c",
"./scan.c",
"./svars.c",
"./trans.c",
"./util.c",
"+tables",
},
deps = {
"h+emheaders",
"h+local",
"./ack.h",
"./data.h",
"./dmach.h",
"./grows.h",
"./list.h",
"./trans.h",
}
}
installable {
name = "pkg",
map = {
["$(INSDIR)/bin/ack"] = "+ack",
["$(INSDIR)/share/man/man1/ack.1"] = "./ack.1.X",
["$(PLATIND)/descr/fe"] = "lib/descr/fe",
}
}