Re: Avoid to recompile the target

2014-12-08 Thread Kenneth Adam Miller
If you specify a target that isn't considered satisfied by make after it executes the command, the next time it runs it will not see the new files, look for something that will never exist and then rebuild it every time. Think about this: all: foo foo: source.c gcc source.c The problem here is

Avoid to recompile the target

2014-12-08 Thread FanKe Meng
Hi, I'm writing a simple project now with the main Makefile and definitions in a directory and submakes in its sub-directories. I write explicit rules to compile the source files into object files and the link all the object files into an executable file. However, while there is no source f