Skip to contentSkip to conversation

build: Fix installation of target-dependent files

PATCH New Lluís Vilanova 1 participant 1 message Jan 9, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Fix installation of target-dependent files

Pass all the relevant sub-directory make variables.

---
Cc: Anthony Liguori <[email protected]>
Cc: Paul Brook <[email protected]>

---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index bdff4e4..02ae76d 100644
@@ -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