开发者

cp Command Giving Error in Make file

HI while executing the below make file code i'm getting an error saying that ,

Signing File 3E0022__.FPG
cp: missing destination file  ******Error during cp command 
Try `cp --help' for more information.****

this is my script:

    for fpga in $(LIST_A); do\
            link=1;\
            for disFpga in  $(LIST_B); do\
                  开发者_如何学Go  if [ "$$fpga" = "$$disFpga" ] ;then\
                            echo "Signing File $$fpga";\
                            cp $($(fpga)) $(PKG)/$(fpga);\ ===> * Error at this Point*              
                               link=0;\
                    fi;\
            done;\
                    if [ $$link -eq 1 ] ;then  echo "Linking Done for $$fpga  File";\
                     fi;\
    done;

kindly help me to resolve this issue

Thanks

Arun


You are getting Make variables mixed up with shell variables. This will do what I think you want:

cp $$fpga $(PKG)/$$fpga;\


I think $($(fpga)) is wrong. Should it be $(fpga)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜