[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: gnu make to write source version, extra info into every source file
From: |
Dave Korn |
Subject: |
RE: gnu make to write source version, extra info into every source file |
Date: |
Mon, 7 Jan 2008 16:26:08 -0000 |
On 07 January 2008 15:38, Russell King wrote:
> How do you get this kind of info into every source file (see below), when
> using gnu make, with -D flags? What need to be defined in GNU Makefile and
> how the variable flags need to be set into source file? Example showing
> how to do it in make file and corresponding example for the source would be
> grateful.
>
> ### $Id: start.src,v 1 2008/1/7 2:2:35 da Exp $
> ### $Source: /cvsroot/some.src,v $
> ### $Revision: 1 $
> ### $Date: 2008/1/7 2:2:35 $
> ### $State: Exp $
>
> Thank you.
> Russ
It's not make that does that at all, it's CVS. Look for "Keyword
substitution" in the cvs manual.
cheers,
DaveK
--
Can't think of a witty .sigline today....