]> pilppa.org Git - lib1wire.git/blob - autobuild.sh
Support for setting and reading device name from config file.
[lib1wire.git] / autobuild.sh
1 #!/bin/sh
2
3 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 
4 if ! [ -e Makefile ] ;
5 then
6         echo "No Makefile available, generating it."
7         libtoolize --automake --force --copy
8         autoreconf --force --install
9         ./configure --prefix=/usr/local
10 else
11         echo "Makefile found, no need to generate it."
12 fi
13 make