Commit 46b8ef7d authored by Markus Kauppila's avatar Markus Kauppila

Fixed 'make install' errors by using a bash script.

parent 84915157
...@@ -9,13 +9,7 @@ runner_LDFLAGS = `sdl-config --libs` ...@@ -9,13 +9,7 @@ runner_LDFLAGS = `sdl-config --libs`
install: install-tests install: install-tests
install-tests: install-tests:
-mkdir tests $(SHELL) install-tests.sh
-cp -f testdummy/.libs/*.dylib tests/ 2> /dev/null
-cp -f testdummy/.libs/*.so tests/ 2> /dev/null
-cp -f testrect/.libs/*.dylib tests/ 2> /dev/null
-cp -f testrect/.libs/*.so tests/ 2> /dev/null
-cp -f testplatform/.libs/*.dylib tests/ 2> /dev/null
-cp -f testplatform/.libs/*.so tests/ 2> /dev/null
distclean-local: distclean-local:
-rm -Rf tests/ docs/ -rm -Rf tests/ docs/
......
#! /bin/bash
DIRECTORY="tests"
EXT="error"
echo "Installing test suites to $DIRECTORY"
rm -Rfv $DIRECTORY 2&>1 /dev/null
mkdir $DIRECTORY 2&>1 /dev/null
PLATFORM="$(uname)"
if [[ $PLATFORM == "Linux" ]]; then
EXT="so"
elif [[ $PLATFORM == "Darwin" ]]; then
EXT="dylib"
fi
# TODO: put the test in an array
for suite in "testdummy" "testplatform" "testrect"
do
cp -f "$suite/.libs/lib$suite.$EXT" $DIRECTORY
done
echo "Test suited installed."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment