On Fri, Mar 19, 2010 at 12:41 PM, Roy Stogner <[email protected]> wrote:
>
>
> On Fri, 19 Mar 2010, John Peterson wrote:
>
>> Have libmesh-config process the makefile, and strip out the echo
>> commands?  Looks like that's all it needs currently.
>
> Applying regexps to our Makefile to produce another (temporary?)
> Makefile?  Sounds fragile, even compared to "Makefile.const".
>
>> Anyway, as I understand it, PHONY is really for targets such as
>> "clean" which don't result in anything actually being built.  Since
>> the .depend target actually builds something, what we're doing is
>> already basically a hack....
>
> True.
>
>> Could we add .depend to the "all" target instead of making it PHONY?
>> That way dependencies could be regenerated whenever you just type
>> make....
>
> This sounds pretty good.  To be as paranoid as possible we could add
> .depend to the object files' dependencies, even.

Yeah, I'd add it anywhere you think it could potentially be necessary.

> But there was one thing I really liked about the PHONY .depend: it
> automatically caused dependency regeneration in our example &
> application builds as well.  I guess we could manually make .depend a
> dependency of example/app object files, and suggest our users do the
> same if they like that behavior?

That is a pretty cool feature I guess.  By the way, why not also make
.depend depend (so to say) on

.depend: $(srcfiles) $(headerfiles)

?

-- 
John

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to