How To test the exit status, and do something in Makefile -


I'm trying to do this ... and it looks like my makefile

 . PHONY: Run Shell: = / bin / tcsh Runs: md5sum -c md; \ $ /?>  

But I get this error.

  if: badly created number. Make: *** [Run] Error 1  

Am I doing right? Or is there a better way to do this in the makefile?

In fact, you should never do anything, to write the makefile rules csh < / Code> (or tcsh ) Write a rule using the POSIX shell:

 . PHONY: Runs scored: md5sum -c md; \ [$$]? -E 0 0]; Then \ echo "PASS"; \ F \ "fail" echo; \ Fi  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -