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:
@@ -147,7 +147,7 @@ EOF
|
||||
tmp=`basename $file .C`
|
||||
tmp=`basename $tmp .cpp`
|
||||
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
|
||||
NEED_CLEAN=y
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user