Browse Source

Updated gpio program to fix some minor issues.
Added top-level build script for lazy building.

Gordon Henderson 11 years ago
parent
commit
c433519cf1
1 changed files with 28 additions and 0 deletions
  1. 28 0
      build

+ 28 - 0
build

@@ -0,0 +1,28 @@
+#!/bin/bash
+
+if [ x$1 = "xclean" ]; then
+  echo Cleaning
+  echo
+  cd wiringPi
+  make clean
+  cd ../gpio
+  make clean
+  cd ../examples
+  make clean
+  cd ..
+else
+  echo wiringPi Build script - please wait...
+  echo
+  cd wiringPi
+  make 
+  sudo make install
+  cd ../gpio
+  make
+  sudo make install
+  cd ../examples
+  make
+  cd ..
+fi
+
+echo
+echo All Done.