X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/294ae241208d48a62159741f036f4ca7aac9d9ad..3a08655cadff84ae84d40286fd5e875b9b2638ed:/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