# FIXME: Handle multiple .pro files correctly
$(LOCAL_BUILD_DIR)/$(dir $(1))Makefile: $(SOURCES_DIR)/$(1)
$(Q)mkdir -p $$(dir $$(@)) && cd $$(dir $$(@)) && \
- $(QTDIR:%=%/bin/)qmake \
+ $(if $(QMAKE),$(QMAKE),$(QTDIR:%=%/bin/)qmake) \
TOP_DIR=$(OUTPUT_DIR) \
RELATIVE_DIR=$(RELATIVE_PREFIX)$(dir $(1)) \
$(QTDIR:%=QTDIR=%) CC=$(CC) CXX=$(CXX) \
export QTDIR
[ -d $QTDIR ] || canttest "Can't find QT4 instalation"
-cp Makefile1.omk Makefile.omk
-make || error "QT compilation"
-[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
-
-make clean || error "QT clean 1"
-
-cp Makefile2.omk Makefile.omk
-make || error "QT Compilation in subdir"
-[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
-
-make clean || error "QT clean 2"
-
-cp Makefile3.omk Makefile.omk
-make || error "QT_PROJECT test "
-[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
-
-make clean || error "QT clean 3"
+. ./test.inc
--- /dev/null
+#!/bin/sh
+
+. ../functions.sh
+
+touch config.omk-default
+QTDIR=/usr/share/qt4
+export QTDIR
+[ -d $QTDIR ] || canttest "Can't find QT4 instalation"
+
+QMAKE=qmake-qt4
+export QMAKE
+
+. ./test.inc
--- /dev/null
+runtest.rules
\ No newline at end of file
--- /dev/null
+cp Makefile1.omk Makefile.omk
+make || error "QT compilation"
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 1"
+
+cp Makefile2.omk Makefile.omk
+make || error "QT Compilation in subdir"
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 2"
+
+cp Makefile3.omk Makefile.omk
+make || error "QT_PROJECT test "
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 3"