From 7f64fe96c72500facf938f2695e975e5f61873d8 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 5 Nov 2016 11:47:36 +0100 Subject: [PATCH] Properly declare the library headers as dependencies. --- modules/src/alloc/build.lua | 3 ++- modules/src/flt_arith/build.lua | 3 ++- modules/src/object/build.lua | 1 + modules/src/print/build.lua | 3 ++- modules/src/read_em/build.lua | 1 + modules/src/string/build.lua | 5 ++++- modules/src/system/build.lua | 5 ++++- 7 files changed, 16 insertions(+), 5 deletions(-) diff --git a/modules/src/alloc/build.lua b/modules/src/alloc/build.lua index a274c390e..c8124c318 100644 --- a/modules/src/alloc/build.lua +++ b/modules/src/alloc/build.lua @@ -4,7 +4,8 @@ clibrary { hdrs = { "./alloc.h" }, deps = { "modules+headers", - "modules/src/system+lib" + "modules/src/system+lib", + "./*.h" }, } diff --git a/modules/src/flt_arith/build.lua b/modules/src/flt_arith/build.lua index a3da4b801..e6ac2dd40 100644 --- a/modules/src/flt_arith/build.lua +++ b/modules/src/flt_arith/build.lua @@ -19,7 +19,8 @@ clibrary { }, hdrs = { "./flt_arith.h" }, deps = { - "modules+headers" + "modules+headers", + "./*.h", } } diff --git a/modules/src/object/build.lua b/modules/src/object/build.lua index 61a9907f1..c30c7e54a 100644 --- a/modules/src/object/build.lua +++ b/modules/src/object/build.lua @@ -5,6 +5,7 @@ clibrary { "modules+headers", "h+local", "h+emheaders", + "./*.h", }, } diff --git a/modules/src/print/build.lua b/modules/src/print/build.lua index a3bc48b06..67c873b69 100644 --- a/modules/src/print/build.lua +++ b/modules/src/print/build.lua @@ -4,7 +4,8 @@ clibrary { hdrs = { "./print.h" }, deps = { "modules+headers", - "modules/src/system+lib" + "modules/src/system+lib", + "./*.h" } } diff --git a/modules/src/read_em/build.lua b/modules/src/read_em/build.lua index f559831bd..7c147dfc0 100644 --- a/modules/src/read_em/build.lua +++ b/modules/src/read_em/build.lua @@ -54,6 +54,7 @@ local function variant(name, cflags) "modules/src/em_code+headers", "modules/src/em_data+lib", "modules/src/system+lib", + "./*.h", } } end diff --git a/modules/src/string/build.lua b/modules/src/string/build.lua index c45a84577..b2aa4b9c3 100644 --- a/modules/src/string/build.lua +++ b/modules/src/string/build.lua @@ -1,7 +1,10 @@ clibrary { name = "lib", srcs = { "./*.c" }, - deps = { "modules+headers" }, + deps = { + "modules+headers", + "./*.h" + }, } diff --git a/modules/src/system/build.lua b/modules/src/system/build.lua index 47587e122..cecae7d5e 100644 --- a/modules/src/system/build.lua +++ b/modules/src/system/build.lua @@ -2,7 +2,10 @@ clibrary { name = "lib", srcs = { "./*.c" }, hdrs = { "./system.h" }, - deps = { "modules+headers" }, + deps = { + "modules+headers", + "./*.h" + }, }