]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Makefile.am: add mkdir testsuite
authorSaul Wold <sgw@linux.intel.com>
Thu, 10 Oct 2013 06:49:48 +0000 (23:49 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 10 Oct 2013 14:23:44 +0000 (11:23 -0300)
If we are note building in the existing source tree and have disabled
dependency-tracking then the testsuite directory is not created during
the configure phase and will not exist when the cp of ROOTFS_PRISTINE
occurs, thus causing an error and fail.

Makefile.am

index 3ec70d26a78c7f5b9115aad027982e495c6d52f0..1c1e5f73a060193a8ffaeafcc751023ca9ad115e 100644 (file)
@@ -130,7 +130,7 @@ endif
 
 ROOTFS = testsuite/rootfs
 ROOTFS_PRISTINE = $(top_srcdir)/testsuite/rootfs-pristine
-CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && \
+CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && mkdir -p $(dir $(ROOTFS)) && \
                                cp -r $(ROOTFS_PRISTINE) $(ROOTFS) && \
                                touch testsuite/stamp-rootfs && \
                                find $(ROOTFS) -type d -exec chmod +w {} \; )