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