From 9471824e78e1f85e1b5d2781da2b157a50a28c9f Mon Sep 17 00:00:00 2001 From: Faraz <2i3r@opil0> Date: Tue, 24 Mar 2020 01:16:35 +0430 Subject: [PATCH] Improved copying of files during installation --- gpio/Makefile | 4 ++-- wiringPiD/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gpio/Makefile b/gpio/Makefile index 006bff9..5bb8b1b 100755 --- a/gpio/Makefile +++ b/gpio/Makefile @@ -207,13 +207,13 @@ tags: $(SRC) .PHONY: install install: gpio $Q echo "[Install]" - $Q cp gpio $(DESTDIR)$(PREFIX)/bin + $Q cp gpio $(DESTDIR)$(PREFIX)/bin/ ifneq ($(WIRINGPI_SUID),0) $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio $Q chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio endif $Q mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 - $Q cp gpio.1 $(DESTDIR)$(PREFIX)/share/man/man1 + $Q cp gpio.1 $(DESTDIR)$(PREFIX)/share/man/man1/ .PHONY: install-deb install-deb: gpio diff --git a/wiringPiD/Makefile b/wiringPiD/Makefile index 6b2cc9e..d2a1d24 100644 --- a/wiringPiD/Makefile +++ b/wiringPiD/Makefile @@ -69,11 +69,11 @@ tags: $(SRC) install: wiringpid $Q echo "[Install]" $Q mkdir -p $(DESTDIR)$(PREFIX)/sbin - $Q cp wiringpid $(DESTDIR)$(PREFIX)/sbin + $Q cp wiringpid $(DESTDIR)$(PREFIX)/sbin/ $Q chown root.root $(DESTDIR)$(PREFIX)/sbin/wiringpid # $Q mkdir -p $(DESTDIR)$(PREFIX)/man/man8 -# $Q cp gpio.1 $(DESTDIR)$(PREFIX)/man/man8 +# $Q cp gpio.1 $(DESTDIR)$(PREFIX)/man/man8/ .PHONY: install-deb install-deb: gpio