mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2025-12-12 16:08:49 +01:00
Makefiles: Honour WIRINGPI_SUDO=0
This makes it possible for the caller of ./build to suppress the chown/chmod of the gpio utility. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
This commit is contained in:
parent
f5dd04b5ae
commit
3ceb07a9a6
@ -73,8 +73,10 @@ tags: $(SRC)
|
||||
install: gpio
|
||||
$Q echo "[Install]"
|
||||
$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)/man/man1
|
||||
$Q cp gpio.1 $(DESTDIR)$(PREFIX)/man/man1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user