# Makefile.rules - OCERA make framework common project rules -*- makefile-gmake -*-
#
# (C) Copyright 2003, 2006, 2007, 2008, 2009 by Pavel Pisa - OCERA team member
-# (C) Copyright 2006, 2007, 2008, 2009, 2010, 2011 by Michal Sojka - Czech Technical University, FEE, DCE
+# (C) Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 by Michal Sojka - Czech Technical University, FEE, DCE
#
# Homepage: http://rtime.felk.cvut.cz/omk/
# Version: @git-describe@
fi
$(Q)for i in `find -L . -name Makefile.omk` ; do \
d=`dirname $${i}`; \
- if ! test -f "$${d}/Makefile.rules" && ( test -f "$${d}/Makefile" && ! cmp -s Makefile "$${d}/Makefile" ); then \
+ if ! test -f "$${d}/Makefile.rules" && ! cmp -s Makefile "$${d}/Makefile"; then \
rm -f "$${d}/Makefile"; \
cp -v Makefile "$${d}/Makefile"; \
fi \
programs-cflags programs-cxxflags programs-cflags-cmdline programs-defs \
programs-test_PROGRAMS qt qt-qmake shlibs sources_dir \
sources_in_subdirectory sources_list subdirs_first \
-subdirs_first-force-subdir use_leaf_makefiles vxworks whole_tree
+subdirs_first-force-subdir use_leaf_makefiles vxworks whole_tree omkize
all test:
--- /dev/null
+#!/bin/bash
+
+. ./wvtest.sh
+
+WVSTART omkize
+echo "SUBDIRS = dir" > Makefile.omk
+omkize
+touch config.omk-default
+mkdir dir
+touch dir/Makefile.omk
+WVPASS make omkize
+WVPASS test -f dir/Makefile
+WVPASS cmp Makefile dir/Makefile