chiark / gitweb /
wiringpi: Enable in top-level Makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Jun 2016 12:01:18 +0000 (13:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Jun 2016 12:01:20 +0000 (13:01 +0100)
Ad-hoc check for the library header file, to avoid FTBFS on
non-Raspbian hosts.

Makefile

index e81567631cca5dec8ef0c05f959714df675832cd..b457d711b0b519333abb0534469c51f12fbd7524 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 
 SUBDIRS=       base adns hbytes cdb crypto dgram tuntap
 
+ifneq ($(wildcard /usr/include/wiringPi.h /usr/include/arm-*/wiringPi.h),)
+SUBDIRS+=      wiringpi
+endif
+
 default: all
 
 clean all: