5f7b84
commit 35e038c1d2ccb3a75395662f9c4f28d85a61444f
5f7b84
Author: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5f7b84
Date:   Mon Jul 22 17:34:13 2019 -0300
5f7b84
5f7b84
    test-container: Install with $(all-subdirs) [BZ #24794]
5f7b84
    
5f7b84
    Whenever a sub-make is created, it inherits the variable subdirs from its
5f7b84
    parent.  This is also true when make check is called with a restricted
5f7b84
    list of subdirs.  In this scenario, make install is executed "partially"
5f7b84
    and testroot.pristine ends up with an incomplete installation.
5f7b84
    
5f7b84
    	[BZ #24794]
5f7b84
    	* Makefile (testroot.pristine/install.stamp): Pass
5f7b84
    	subdirs='$(all-subdirs)' to make install.
5f7b84
    
5f7b84
    Reviewed-by: DJ Delorie <dj@redhat.com>
5f7b84
5f7b84
diff --git a/Makefile b/Makefile
5f7b84
index a4ed747..9fbf705 100644
5f7b84
--- a/Makefile
5f7b84
+++ b/Makefile
5f7b84
@@ -401,7 +401,8 @@ ifeq ($(run-built-tests),yes)
5f7b84
 	    $(test-wrapper) cp $$dso $(objpfx)testroot.pristine$$dso ;\
5f7b84
 	  done
5f7b84
 endif
5f7b84
-	$(MAKE) install DESTDIR=$(objpfx)testroot.pristine
5f7b84
+	$(MAKE) install DESTDIR=$(objpfx)testroot.pristine \
5f7b84
+	  subdirs='$(all-subdirs)'
5f7b84
 	touch $(objpfx)testroot.pristine/install.stamp
5f7b84
 
5f7b84
 tests-special-notdir = $(patsubst $(objpfx)%, %, $(tests-special))