From 7b3f870f6385f60b9cae18241b3ae058f890b986 Mon Sep 17 00:00:00 2001 From: George Koehler Date: Fri, 11 Nov 2016 17:06:25 -0500 Subject: [PATCH] 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. --- util/ack/build.lua | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/util/ack/build.lua b/util/ack/build.lua index 4394484b4..cb9b66fd4 100644 --- a/util/ack/build.lua +++ b/util/ack/build.lua @@ -18,12 +18,28 @@ normalrule { cprogram { name = "ack", srcs = { - "./*.c", + "./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", } }