QMAKE=`which qmake`

if [ -n "$QMAKE" ] ; then
qmake
else
qmake-qt4
fi

