X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/1e832aa31a16b4c9c36ceae8e34f1d7190e65e99..c491de9e6cdbd75dfe7a0cd9512bab00ddb24646:/build-lincan.sh diff --git a/build-lincan.sh b/build-lincan.sh index 27ade3d..a02a8fd 100755 --- a/build-lincan.sh +++ b/build-lincan.sh @@ -27,7 +27,12 @@ for i in $SOURCE_DIRS ; do done if [ ! -e "$BUILD_DIR/Makefile" ] ; then - cp omk/Makefile "$BUILD_DIR/Makefile" + m=$OMK_RULES_DIR + if [ ! -e "$m/Makefile" ] ; then m="$(dirname $m)" ; fi + if [ ! -e "$m/Makefile" ] ; then m="$(dirname $m)" ; fi + if [ -e "$m/Makefile" ] ; then + cp -v "$m/Makefile" "$BUILD_DIR/Makefile" + fi fi ( cd "$BUILD_DIR" && make default-config ) || exit 1