%% "Jeff Wood" <[EMAIL PROTECTED]> writes: jw> Can a makefile recreate itself and then run the newly jw> recreated makefile?
GNU make will attempt to rebuild each makefile it reads (except ones in the MAKEFILES variable IIRC), including both the original makefile and any included makefiles. If any of them are rebuilt, it will automatically re-exec itself to read the new versions (then it will try to rebuild them again--so be careful to not go into an infinite loop!) So, all you have to do is provide a rule that rebuilds your makefile and it will Just Work. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
