Re: Content tracking mode for make

2012-02-17 Thread Raman Gopalan
Hello Edward, Thanks for the mail. I have tried using git for this task. It works fine for my needs. Thanks for the tip. Regards, Raman On Tue, Feb 14, 2012 at 3:25 PM, Edward Welbourne wrote: > > Somtimes, it is possible that a code generator replaces the > > existing files in the code base

Re: Content tracking mode for make

2012-02-14 Thread Edward Welbourne
> Somtimes, it is possible that a code generator replaces the > existing files in the code base with the same content. It might > be a good option to enable content checking before make > rebuilds the replaced file (with the same content) again. Another approach: have the code generator run on a s

Re: Content tracking mode for make

2012-02-14 Thread Raman Gopalan
Hello Daniel, >output.h : source.file > codegen -o output.h-tmp source.file The code gen being used is a graphical program which cannot be configured through the terminal. > diff output.h output.h-tmp >/dev/null || mv output.h-tmp output.h > rm -f output.h-tmp Is there a way t

Re: Content tracking mode for make

2012-02-13 Thread Daniel Herring
On Mon, 13 Feb 2012, Raman Gopalan wrote: Also, do you suggest a work around? Something like this? output.h : source.file codegen -o output.h-tmp source.file diff output.h output.h-tmp >/dev/null || mv output.h-tmp output.h rm -f output.h-tmp ? (untested) - Daniel _

Re: Content tracking mode for make

2012-02-13 Thread Raman Gopalan
Hello Lawrence, Thanks for the reply. >This looks like work for your code generator instead of make. I agree with you. This should be fixed in the code gen. But I'm currently working with a production code generator (DAVE) which is nor free and does not include this feature. The build proces

RE: Content tracking mode for make

2012-02-13 Thread Lawrence Ibarria
rence From: bug-make-bounces+libarria=nvidia@gnu.org [mailto:bug-make-bounces+libarria=nvidia@gnu.org] On Behalf Of Raman Gopalan Sent: Monday, February 13, 2012 1:38 PM To: psm...@gnu.org; bug-make Subject: Content tracking mode for make Hello, I am Raman, a student. I am currently wo

Content tracking mode for make

2012-02-13 Thread Raman Gopalan
Hello, I am Raman, a student. I am currently working with code generation for a microcontroller. I was wondering if it is possible to support a new mode on make which tracks dependancy content instead of timestamps. Somtimes, it is possible that a code generator replaces the existing files in the