Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Eric Noulard
2009/3/16 Matthew Woehlke mw_tr...@users.sourceforge.net: Eric Noulard wrote: 2009/2/26 Alex Flint alex.fl...@gmail.com: Hi there, I've noticed that when I run make blah then the makefile is automatically re-generated if I've changed anything in CMakeLists.txt since the last time I built

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Matthew Woehlke
Eric Noulard wrote: 2009/3/16 Matthew Woehlke mw_tr...@users.sourceforge.net: I think if this isn't working, either a: cmake isn't writing optimal dependencies for the makefiles themselves, Optimal depends in which sense. With the current scheme I would say that dependency is checked almost

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Bill Hoffman
Matthew Woehlke wrote: Makefile : cmake_check_build_system Shouldn't this rather be: Makefile: list of CMakeLists.txt, etc cmake_check_build_system ? ...in which case, the only thing that should get checked is if the CMakeLists.txt are newer than the Makefile. So in most cases this

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Matthew Woehlke
Bill Hoffman wrote: Matthew Woehlke wrote: Makefile : cmake_check_build_system Shouldn't this rather be: Makefile: list of CMakeLists.txt, etc cmake_check_build_system ? ...in which case, the only thing that should get checked is if the CMakeLists.txt are newer than the Makefile. So in

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Bill Hoffman
Matthew Woehlke wrote: Bill Hoffman wrote: Matthew Woehlke wrote: Makefile : cmake_check_build_system Shouldn't this rather be: Makefile: list of CMakeLists.txt, etc cmake_check_build_system ? ...in which case, the only thing that should get checked is if the CMakeLists.txt are newer

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Matthew Woehlke
Bill Hoffman wrote: I still don't get the original problem??? We used to have Makefile: build system files. It was removed when that work was pushed into cmake_check_build_system. Ah. Maybe it should come back? The original problem is: 'make foo' doesn't work after adding a target 'foo',

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Brad King
Matthew Woehlke wrote: Bill Hoffman wrote: I still don't get the original problem??? We used to have Makefile: build system files. It was removed when that work was pushed into cmake_check_build_system. Ah. Maybe it should come back? The problem with Makefile: input-foo.txt

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Brad King
Brad King wrote: AFAIK there is no way to implement the make my-new-target interface reliably. FYI, you can write the above like this: make rebuild_cache make my-new-target if you know that it is a new target. -Brad ___ Powered by

Re: [CMake] automatically re-generating makefiles

2009-03-17 Thread Matthew Woehlke
Brad King wrote: The problem with Makefile: input-foo.txt input-bar.txt regenerate-rule is that when someone removes input-bar.txt from disk Make will refuse to run the regeneration rule. Ah, wasn't thinking about that. Thanks for the info. -- Matthew Please do not quote my e-mail

Re: [CMake] automatically re-generating makefiles

2009-03-16 Thread Matthew Woehlke
Eric Noulard wrote: 2009/2/26 Alex Flint alex.fl...@gmail.com: Hi there, I've noticed that when I run make blah then the makefile is automatically re-generated if I've changed anything in CMakeLists.txt since the last time I built blah. However, if I add a new target to CMakeLists.txt then I

[CMake] automatically re-generating makefiles

2009-02-26 Thread Alex Flint
Hi there, I've noticed that when I run make blah then the makefile is automatically re-generated if I've changed anything in CMakeLists.txt since the last time I built blah. However, if I add a new target to CMakeLists.txt then I have to run cmake manually or else I just get to rule to make foo.

Re: [CMake] automatically re-generating makefiles

2009-02-26 Thread Eric Noulard
2009/2/26 Alex Flint alex.fl...@gmail.com: Hi there, I've noticed that when I run make blah then the makefile is automatically re-generated if I've changed anything in CMakeLists.txt since the last time I built blah. However, if I add a new target to CMakeLists.txt then I have to run cmake