Ethereal-dev: Re: [Ethereal-dev] The need to run autogen (almost) every day.

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 16 Sep 2002 15:53:21 -0700
On Tue, Sep 17, 2002 at 12:09:55AM +0200, Joerg Mayer wrote:
> Another week another patch. It might be a bit overkill but should
> do the job.

It seems to work, although it does cause

	Makefile:1442: warning: overriding commands for target `aclocal.m4'
	Makefile:928: warning: ignoring old commands for target `aclocal.m4'

warnings; I don't know whether there are any versions of make that will
not be able to handle the two sets of prerequisites and rules for
$(ACLOCAL_M4) - the rules are the same for both sets, so that's OK.

It might be that a line of the form

	$(ACLOCAL_M4): stamp-aclocal

by itself will just add "stamp-aclocal" to the list of prerequisites for
$(ACLOCAL_M4); Stu Feldman's original Seventh Edition UNIX documentation
for make:

	http://www.math.uio.no/doc/prog/make.html

appears to suggest that this will work:

"A dependency line may have either a single or a double colon.  A target
name may appear on more than one dependency line, but all of those lines
must be of the same (single or double colon) type.

    1. For the usual single-colon case, at most one of these dependency
       lines may have a command sequence associated with it. If the target
       is out of date with any of the dependents on any of the lines, and
       a command sequence is specified (even a null one following a
       semicolon or tab), it is executed; otherwise a default creation
       rule may be invoked. 
    2. In the double-colon case, a command sequence may be associated
       with each dependency line; if the target is out of date with any
       of the files on a particular line, the associated commands are
       executed. A built-in rule may also be executed. This detailed
       form is of particular value in updating archive-type files."

which suggests that any "make" worth taking seriously will support it.