From 321e67b8add29af2cdb78e417a3cc63b1adce3fe Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 24 Aug 2021 20:53:13 +0200 Subject: [PATCH] Pre-create binary directory before copying binary This may exist in most cases, but occasionally it does not and it aligns with the way the man page directory is pre-created as well. Signed-off-by: MichaIng --- gpio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/gpio/Makefile b/gpio/Makefile index 6b8f838..67eb45a 100644 --- a/gpio/Makefile +++ b/gpio/Makefile @@ -72,6 +72,7 @@ tags: $(SRC) .PHONY: install install: gpio $Q echo "[Install]" + $Q mkdir -p $(DESTDIR)$(PREFIX)/bin $Q cp gpio $(DESTDIR)$(PREFIX)/bin ifneq ($(WIRINGPI_SUID),0) $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio