a884eb3dca
While here, refactor a bit so that a failing libnfc build does not indicate a failure of the libfreefare build.
22 lines
373 B
Bash
Executable file
22 lines
373 B
Bash
Executable file
#!/bin/sh
|
|
cd $1
|
|
|
|
if [ "$BLD" = autotools ]; then
|
|
set -x
|
|
autoreconf -vis
|
|
mkdir build-autotools
|
|
cd build-autotools
|
|
../configure --prefix=$HOME/.local
|
|
make
|
|
make install
|
|
elif [ "$BLD" = cmake ]; then
|
|
set -x
|
|
mkdir build-cmake
|
|
cd build-cmake
|
|
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
|
|
make
|
|
make install
|
|
else
|
|
echo "Unsupported build system: '$BLD'" >&2
|
|
exit 1
|
|
fi
|