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