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
This looks like work for your code generator instead of make. The code generator could do a diff before replacing the file. Make would have to keep a backup copy of the last time it built with that file, increasing complexity and time for normal builds. I'd recommend against this. -- Lawrence

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

[bug #35525] buffer overflow in make

2012-02-13 Thread Mike Sullivan
URL: Summary: buffer overflow in make Project: make Submitted by: mike_s Submitted on: Mon 13 Feb 2012 08:05:18 PM GMT Severity: 3 - Normal Item Group: Bug

Re: [rfc] Colorized output for GNU make?

2012-02-13 Thread Sebastian Pipping
On 02/13/2012 05:41 PM, Paul Smith wrote: > Pulling in an implementation from gnulib, just in case, might be the way > to go. This seems to be the entry point: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=modules/vasnprintf I'd make a new directory gnulib and copy needed files

Re: [rfc] Colorized output for GNU make?

2012-02-13 Thread Paul Smith
On Sun, 2012-02-12 at 19:34 +0200, Eli Zaretskii wrote: > > Date: Sun, 12 Feb 2012 18:11:49 +0100 > > From: Sebastian Pipping > > CC: psm...@gnu.org, bug-make@gnu.org > > > > Since we would run into buffer overflows with sprintf/vsprintf, we > > rely on snprintf/vsnprintf for that task. Quoting