Mail Archives: djgpp/1999/01/27/17:16:45
On Wed, 27 Jan 1999, Ya'qub wrote:
> Compilation in my makefile depends on several switches that I define in
> the makefile. However, if I decde to edit the makefile and add a new switch,
> when I run make it says that the executable is up to date. How can I force
> make to rebuild everything since now there is a new set of compilation
> switches that I want?
The simplest (and the most correct) way is to make all important targets
of the Makefile be dependent on the Makefile itself.
Another possibility is to invoke Make with the `-W' switch, so it
``thinks'' that some file has changed. For example, if all of your files
include a header called `foo.h', "make -W foo.h" will recompile and
relink everything.
- Raw text -