build: use tool from configure
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 3 Jan 2018 02:17:51 +0000 (18:17 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 3 Jan 2018 02:17:51 +0000 (18:17 -0800)
This way we make sure the tool will be the one we actually configured
before going through sudo.

Makefile.am
configure.ac

index b7ee6b1..3ea4274 100644 (file)
@@ -504,5 +504,5 @@ tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign
 # ------------------------------------------------------------------------------
 
 mkosi:
-       -mkdir $(top_srcdir)/testsuite/mkosi/mkosi.cache
-       mkosi -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ -fi
+       -$(MKDIR_P) $(top_srcdir)/testsuite/mkosi/mkosi.cache
+       $(MKOSI) -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ -fi
index ca94bf8..932e87d 100644 (file)
@@ -31,6 +31,7 @@ AC_PROG_MKDIR_P
 AC_PROG_LN_S
 PKG_PROG_PKG_CONFIG
 AC_PATH_PROG([XSLTPROC], [xsltproc])
+AC_PATH_PROG([MKOSI], [mkosi])
 
 AC_PROG_CC_C99