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