This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use copy command in makefile?

Hello,

  I used a command like this in the makefile, but the makefile reported an error.

	copy /V _build\ota_image\release_1.dat+_build\ota_image\release_1.bin _build\ota_image\ota_file.bin

process_begin: CreateProcess(NULL, copy /V _build\ota_image\release_1.dat+_build\ota_image\release_1.bin _build\ota_image\ota_file.bin, ...) failed.
make (e=2): The system cannot find the file specified.

But I can generate ota_file.bin with a bat file.

Regards, 

Gray.

Parents Reply
  • I would not think you can do so by appending the .bin file path to the .bat file path.
    If the '+' character is being interpreted without any specific makefile meaning, then you will still just append the one path string to the other, which is likely why the error reads "cant find the specified file".

    You mention that you are able to successfully merge the two files together in your bat script, could you not just do this as an operation following the make command?

    Best regards,
    Karl

Children
Related