Hello, I need to test two conditions in a makefile (two file existing), but I cannot find the solution. I have tryed with the following lines, #--------------------------------------------------- export FILE_GEN_NAME = ${TLM_BOTTOM}/tlm_ncsc_${TLM_TEST_NAME}.so export LIB_GEN_NAME = ${TLM_BOTTOM}/lib${TLM_PLT_NAME}.so FileExists = $(strip $(wildcard ${FILE_GEN_NAME})) LibExists = $(strip $(wildcard ${LIB_GEN_NAME})) #--------------------------------------------------- display: if [ $(or (! -f $(LibExists)), (! -f $(FileExists)) ] ; then echo "library building FAILED!!!"; else echo "library building SUCCEEDED!!!"; and I got the error if [ ] ; then echo "TLM_VERIF_PLT_31 library building FAILED!!!"; else echo "TLM_VERIF_PLT_31 library building SUCCEEDED!!!"; /bin/sh: -c: line 2: syntax error: unexpected end of file make: *** [display] Error 2
Thanks for any help you can give me. Regards, Paolo Martinelli
_______________________________________________ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make