WiringPi/build
Gordon Henderson 183c5a6b5c More changes to help reflect usage on Rev 2 / 512MB Raspberry Pi's.
Also Makefile tweaks to help improve things somewhat - decided to
read the Makefile manual after some 15 years to updated my make
grey cells somewhat.

New command in the gpio command - readall
2012-10-21 15:25:16 +01:00

45 lines
626 B
Bash
Executable File

#!/bin/bash
if [ x$1 = "xclean" ]; then
echo Cleaning
echo
cd wiringPi
make clean
cd ../gpio
make clean
cd ../examples
make clean
cd ..
elif [ x$1 = "xuninstall" ]; then
echo Uninstalling
echo
echo "WiringPi library"
cd wiringPi
sudo make uninstall
echo
echo "GPIO Utility"
cd ../gpio
sudo make uninstall
cd ..
else
echo wiringPi Build script - please wait...
echo
echo "WiringPi library"
cd wiringPi
make
sudo make install
echo
echo "GPIO Utility"
cd ../gpio
make
sudo make install
echo
echo "Examples"
cd ../examples
make
cd ..
fi
echo
echo All Done.