From fd047bd6e97e75bf9d7e2527cd7bc56521e4213b Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 20 Feb 2013 17:20:10 -0700 Subject: [PATCH] find headers regardless of directory layout in vm-depends definition --- makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 38872186bf..076145e1ba 100755 --- a/makefile +++ b/makefile @@ -939,7 +939,8 @@ generated-code = \ $(build)/type-name-initializations.cpp \ $(build)/type-maps.cpp -vm-depends := $(generated-code) $(wildcard $(src)/*.h) $(wildcard $(src)/codegen/*.h) $(wildcard $(src)/codegen/compiler/*.h) +vm-depends := $(generated-code) \ + $(shell find src include -name '*.h' -or -name '*.inc.cpp') vm-sources = \ $(src)/$(system).cpp \ @@ -1019,7 +1020,7 @@ heapwalk-sources = $(src)/heapwalk.cpp heapwalk-objects = \ $(call cpp-objects,$(heapwalk-sources),$(src),$(build)) -unittest-objects = $(call cpp-objects,$(unittest-sources),$(unittest),$(build)/unittest/) +unittest-objects = $(call cpp-objects,$(unittest-sources),$(unittest),$(build)/unittest) ifeq ($(heapdump),true) vm-sources += $(src)/heapdump.cpp