chiark / gitweb /
Makefiles: Honour WIRINGPI_SUDO=0
[wiringPi.git] / gpio / Makefile
index 095ec48aa3db13bf06af0b0b3403b6db44817f77..fa78421fd8713ece8a02040b8677e304fd03d70b 100644 (file)
@@ -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