Ethereal-dev: Re: [Ethereal-dev] Proposal for enhancement of make-version.pl

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

From: John McDermott <jjm@xxxxxxxxxx>
Date: Fri, 30 Jan 2004 16:50:02 -0700

Olivier Biot wrote:
I finalized the new (faster) version of make-version.pl. It scans for
directories named CVS and looks for files named Entries herein. It
will only scan the most recent of these files, and define the CVS
version accordingly.

I however did not find a single clue on how to execute code in a
Makefile at every invoke of make.

IIRC, this works.  It may not work for *all* makes, I dunno.

target:
	thing-to-run-everytime

then
	make target
runs the thing-to-run-everytime.  You can also say things like
all: foo bar baz target

and so forth.

--john
--
John McDermott
Writer, Educator, Consultant
jjm@xxxxxxxxxx		http://www.jkintl.com
V +1 505/377-6293 F +1 505/377-6313