Patchwork [20/22] build: Fix installation of target-dependant files

login
register
mail settings
Submitter Lluís Vilanova
Date March 26, 2013, 2:02 p.m.
Message ID <20130326140213.4471.57760.stgit@fimbulvetr.bsc.es>
Download mbox | patch
Permalink /patch/231236/
State New
Headers show

Comments

Lluís Vilanova - March 26, 2013, 2:02 p.m.
Pass all the relevant sub-directory make variables.

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
Cc: Anthony Liguori <aliguori@us.ibm.com>
Cc: Paul Brook <paul@codesourcery.com>
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/Makefile b/Makefile
index feb395c..8b0155d 100644
--- a/Makefile
+++ b/Makefile
@@ -339,7 +339,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