#!/bin/bash
mkdir -p build-qt
qmake qcoan.pro
if [[ $1 == clean ]]; then
  make -f Makefile --jobs=4 clean; shift;
fi
rm -f build build-qt/qcoan; ln -fs build-qt build
make -f Makefile --jobs=4
if [[ $1 != compile ]]; then
  echo -------------------------------------------------
  ulimit -c unlimited;  # allow for core files
  build-qt/qcoan 
fi

