#!/bin/bash
#
#  Let's compile opencv.jp/opencv2-x-samples
#  2010/09/18b original, kameda[at]iit.tsukuba.ac.jp
#

pushd opencv2-x-samples >/dev/null

if [ -f ../../Makefile-c_and_cpp ] ; then
  echo "Compile samples of opencv.jp/opencv2-x-samples in 5 seconds..."
  sleep 5
  cp -p ../../Makefile-c_and_cpp .
  make clean -f Makefile-c_and_cpp
  make all   -f Makefile-c_and_cpp
else
  echo "Makefile-c_and_cpp not found, exiting..."
fi 

popd >/dev/null

exit 0

