]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
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 b7ee6b18988506792033f1511264e9ae701a73e1..3ea42747b63ab759a8180a491ebcb42c0151ac57 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 ca94bf8c3e2188fec23adb97595b65565e202e88..932e87da0736376bce74c2c0ba010ff435089e92 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