RE: [AMBER-Developers] Help with Makefile syntax

From: Ross Walker <ross.rosswalker.co.uk>
Date: Thu, 4 Mar 2010 16:39:05 -0800

Hi Scott,

> your just missing ;\ on the end of your mv's:
> mv pmemd.cuda$(SFX) $(BINDIR)/pmemd.cuda_SPSP$(SFX) ;\

Are you sure? I change it to:

cuda: configured_cuda pmemd.cuda$(SFX)
        .( \
          if grep $(CUDA_SPSP_TOKEN) $(CONFIG_FILE) 1> /dev/null 2>&1 ; then
\
            mv pmemd.cuda$(SFX) $(BINDIR)/pmemd.cuda_SPSP$(SFX) ;\
          elif grep $(CUDA_DPDP_TOKEN) $(CONFIG_FILE) 1> /dev/null 2>&1 ;
then \
            mv pmemd.cuda$(SFX) $(BINDIR)/pmemd.cuda_DPDP$(SFX) ;\
          else ; then \
            mv pmemd.cuda$(SFX) $(BINDIR) ;\
          fi ;\
        )

But I still get:

/bin/sh: -c: line 0: syntax error near unexpected token `;'
/bin/sh: -c: line 0: `( if grep Duse_SPSP ../../config.h 1> /dev/null 2>&1
; then mv pmemd.cuda /home/rcw/cvs_checkouts/amber11/bin/pmemd.cuda_SPSP ;
elif grep Duse_DPDP ../../config.h 1> /dev/null 2>&1 ; then mv pmemd.cuda
/home/rcw/cvs_checkouts/amber11/bin/pmemd.cuda_DPDP ; else ; then mv
pmemd.cuda /home/rcw/cvs_checkouts/amber11/bin ; fi ; )'
make[2]: *** [cuda] Error 2
make[2]: Leaving directory
`/server-home/rcw/cvs_checkouts/amber11/src/pmemd/src'
make[1]: *** [cuda] Error 2
make[1]: Leaving directory
`/server-home/rcw/cvs_checkouts/amber11/src/pmemd'
make: *** [cuda] Error 2


:-(

Ross.



_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Mar 04 2010 - 17:00:03 PST
Custom Search