Scenario 1:
I checked out a project, and made some changes to a source file, and did make, and make sees the changes.
Scenario 2:
I checked out the project again to different directory (some reasons), copied the modified source file here, and did make and nothing happens, if I run the program, I don’t see my changes, make doesn’t see that I made change to this source file
makeuses the timestamps of the files to determine what to build.Perhaps your version-control system is checking all files out with the current time. When you copy your source over, it has a time in the past, making
makethink that the object file (presumably in your checkout) is newer than your source.If that’s the case, you can use
touchto set the timestamp of a file to now.