Pass all the relevant sub-directory make variables. Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu> --- Cc: Anthony Liguori <aligu...@us.ibm.com> Cc: Paul Brook <p...@codesourcery.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile index bdff4e4..02ae76d 100644 --- a/Makefile +++ b/Makefile @@ -366,7 +366,7 @@ endif $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \ done for d in $(TARGET_DIRS); do \ - $(MAKE) -C $$d $@ || exit 1 ; \ + $(MAKE) $(SUBDIR_MAKEFLAGS) TARGET_DIR=$$d/ -C $$d $@ || exit 1 ; \ done # various test targets