diff --git a/require-ess/tools/driver.makefile b/require-ess/tools/driver.makefile
index 6c97297647703d9e0ef2809403930ca8aa8c6b15..fb6bd69030b9aef426ca0fdfe055ef9f90886bfc 100644
--- a/require-ess/tools/driver.makefile
+++ b/require-ess/tools/driver.makefile
@@ -742,7 +742,10 @@ debug::
 define install_subdirs
 $1_HDRS = $$(filter $1/%,$$(HDRS))
 INSTALL_HDRS += $$(addprefix $$(INSTALL_INCLUDE)/,$$($1_HDRS:$1/%=%))
-vpath %h ../$1
+vpath %.h ../$1
+vpath %.hpp ../$1
+vpath %.hh ../$1
+vpath %.hxx ../$1
 debug::
 	@echo "$1_HDRS = $$($1_HDRS)"
 endef