From: Michal Sojka Date: Fri, 20 Feb 2009 13:54:13 +0000 (+0100) Subject: Fixed omkize target not to replace symlinks X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk/sssa.git/commitdiff_plain/c5a27915d60fd86fed309a3019da136385ccde16 Fixed omkize target not to replace symlinks --- diff --git a/snippets/base.omk b/snippets/base.omk index f0f7a88..726539a 100644 --- a/snippets/base.omk +++ b/snippets/base.omk @@ -279,7 +279,7 @@ omkize: 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 --silent Makefile "$${d}/Makefile" ); then \ + if ! test -f "$${d}/Makefile.rules" && ( test -f "$${d}/Makefile" && ! cmp --silent Makefile "$${d}/Makefile" ); then \ rm -f "$${d}/Makefile"; \ cp -v Makefile "$${d}/Makefile"; \ fi \