From 9d2902f7502598baa4a31d33b57ab340fa1daaed Mon Sep 17 00:00:00 2001 From: Maciej Gabryelski Date: Thu, 21 Apr 2022 10:11:43 +0200 Subject: util/inteltool/Makefile: improve cross-compilation support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use tool from INSTALL variable to create directory instead of mkdir to be compatible with other cross-compilation buildsystems (like Yocto). Signed-off-by: Maciej Gabryelski Change-Id: I0b0949d07baae1ae1d7b22ac3d0b8913f81d89c1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70104 Reviewed-by: Michał Żygowski Tested-by: build bot (Jenkins) --- util/inteltool/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/inteltool/Makefile b/util/inteltool/Makefile index 3b692fd332..e6e122bc45 100644 --- a/util/inteltool/Makefile +++ b/util/inteltool/Makefile @@ -77,9 +77,9 @@ pciutils: @rm -rf .test.c .test .test.dSYM install: $(PROGRAM) - mkdir -p $(DESTDIR)$(PREFIX)/sbin + $(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin - mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8 + $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man8 $(INSTALL) -p -m644 $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8 .PHONY: all clean distclean dep pciutils -- cgit v1.2.3