mirror of https://github.com/CGAL/cgal
Enhance the detection of compilation targets. The grep for main is not
sufficient. Use the fact that, in "make help", the target names have not suffix, even on Windows.
This commit is contained in:
parent
ea27b02255
commit
f353d629ea
|
|
@ -147,7 +147,7 @@ EOF
|
||||||
tmp=`basename $file .C`
|
tmp=`basename $file .C`
|
||||||
tmp=`basename $tmp .cpp`
|
tmp=`basename $tmp .cpp`
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
if \${MAKE_CMD} -f Makefile help | grep "$tmp" > /dev/null; then
|
if \${MAKE_CMD} -f Makefile help | grep -E "$tmp\$" > /dev/null; then
|
||||||
compile_and_run $tmp
|
compile_and_run $tmp
|
||||||
NEED_CLEAN=y
|
NEED_CLEAN=y
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue