Why GNU make compiles even if there are no modified files
In Category Command Line GNU Make
Some times GNU Make continue to compile some files even if there are no modifications. Typically it happens if you have transferred the files from some other system whose time is set to future. As while transferring files using tarball (archive created by tar command) retains the time stamps of the files, GNU Make thinks that those files are modified and keeps compiling them all the time.
To get rid of this problem, just set time stamp of all source files to current date and time of the system. You can use “touch” command as shown below.
[neo@techpulp ~]# find . -iname \*.[ch] | xargs touch
Recent Comments