help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple condition in test


From: Paolo MARTINELLI
Subject: multiple condition in test
Date: Wed, 19 Sep 2007 15:25:54 +0200


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]