used. If not specified manually, it equals to BUILD_OS.
@end defvar
+@defvar QT_SUBDIRS
+ Lists subdirectories with QT project (.pro) file. OMK will generate
+ there @file{Makefile} by calling @command{qmake} with correct
+ parameters to interface QT application to the rest of the compilation
+ tree. Then @command{make} is called there to compile QT
+ application. Variable @samp{QTDIR} must be set to the directory with
+ QT instalation (e.g. /usr/share/qt4 on Debian).
+@end defvar
@node System-Less, RTEMS, Linux, Properties of Specific Makefile.rules
-f $(SOURCES_DIR)/$(dir)/Makefile || exit 1 ;)
# Hook to binary pass
-binary-pass: qt-subpass
+binary-pass-submakes: qt-subpass
# Hook to clean pass
clean-local: clean-qt
--- /dev/null
+SUBDIRS = somelib dir
+
--- /dev/null
+# Generic directory or leaf node makefile for OCERA make framework
+
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
+endif
+
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+ @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
+else
+include $(MAKERULES_DIR)/Makefile.rules
+endif
+
--- /dev/null
+QT_SUBDIRS = ../qtapp
touch config.omk-default
QTDIR=/usr/share/qt4
+export QTDIR
[ -d $QTDIR ] || canttest "Can't find QT4 instalation"
-make QTDIR=$QTDIR
+
+cp Makefile1.omk Makefile.omk
+make || error "QT compilation"
+[ -x qtapp/qtapp ] || error "QT application was not compiled"
+
+make distclean || error "QT distclean"
+
+cp Makefile2.omk Makefile.omk
+make || error "QT Compilation in subdir"
+[ -x qtapp/qtapp ] || error "QT application was not compiled"