Minor fixes to build system.

This commit is contained in:
Laurence Withers 2006-07-24 14:53:39 +01:00
parent 5c3b5bf654
commit 0bedef0ca3
2 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,7 @@ then
MODIFIED=0 MODIFIED=0
for test in ${MONOLITHIC_TESTS} ${HDR} ${SRC} for test in ${MONOLITHIC_TESTS} ${HDR} ${SRC}
do do
if [ ${test} -nt ${CPPAPP} ] if [ ${test} -nt ${APP} ]
then then
MODIFIED=1 MODIFIED=1
break break

View File

@ -14,7 +14,14 @@ then
do do
TEST="obj/tests/$(basename ${SRC} | sed -e 's,.cpp$,,')" TEST="obj/tests/$(basename ${SRC} | sed -e 's,.cpp$,,')"
MODIFIED=0 MODIFIED=0
[ ${LIBOPT} -nt ${TEST} -o ${SRC} -nt ${TEST} ] && MODIFIED=1 for file in ${LIBCPP} ${SRC}
do
if [ ${file} -nt ${TEST} ]
then
MODIFIED=1
break
fi
done
if [ ${MODIFIED} -ne 0 ] if [ ${MODIFIED} -ne 0 ]
then then