Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: RE: [Ethereal-dev] Hox can we fix cvsversion.h computation?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Thu, 4 Mar 2004 13:59:54 +0100
|From: Joerg Mayer
|
|On Thu, Mar 04, 2004 at 01:28:55AM -0800, Guy Harris wrote:
|> Which versions of make support .PHONY?  GNU make and, at least in
|> FreeBSD 4.6, BSD make do, but do the makes that come with commercial
|> UNIXes support it?
|
|I don't know. But the worst thing that can happen is, that cvsversion.h
|is not updated. If anyone has a solution for this problem that doesn't
|require .PHONY I'd be happy to use it.

You can manually add *all* CVS/Entries files to the dependencies of
cvsversion.h; I don't know whether there's an autotool macro that allows
replacing "find . -name Entries" with its output for the dependencies.
Additionally, the 'find' program is some sort of cheap grep on MS Win
systems.

Ideally, one woud write a Makefile with something like:

cvsversion_h_dependencies = `find . -name Entries`

cvsversion.h: $(cvsversion_h_dependencies)
	$(PERL) make-version.pl

Is this possible?

Regards,

Olivier