In the makefile for my project, I want it to copy a config file only if the file does not already exist in the destination folder. At the moment I am using:
However, recently someone has told me that they are getting an "invalid option" error.
My question is: for a makefile, is there a more compatible method to achieve this than cp -n?
(Note: cp -u is not what I want, if the file already exists, it should never be replaced even if it is older than the source file.)