[Cmake] Autological Makefiles

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon Jun 4 08:21:25 EDT 2001


The Unix Makefile Generator creates rules for itself!

This is quite sensible and clever, because if the cmakelists.txt etc is 
newer than the makefile it'll run cmake and regenerate itself.

Question:
Does the make abort itself, and re-execute with the new makefile 
automatically (even on windows?), or does one need to insert a "Stop", then 
"Restart" mechanism by hand.

It would be fine to do
makefile : cmakelists.txt ....
  echo. This makefile is out of date and has been regenerated, please rerun 
make
  some "abort" command here

but if it can be made to resart automatically, it'd be better.

How does one handle this?

thanks

JB







More information about the CMake mailing list