[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in make: ignoring included prerequisites

From: Paul D. Smith
Subject: Re: Bug in make: ignoring included prerequisites
Date: Wed, 27 Sep 2000 11:08:46 -0400

%% Jochen Hepp <address@hidden> writes:

  jh> I found bug in make-3.79.1 (it accurs also in 3.78.1).

This is a bug in your makefile.

  jh> If a Makefile includes another file (Makefile.included) and if the
  jh> included file defines prerequisites for a target (or both define
  jh> prerequisites), then the prerequisites defined in the included
  jh> files a silently ignored.


In your Makefile you have:

  #include Makefile.included

This is a makefile, not a C program.  In make, the include statement
isn't prefixed with "#", it's just written "include".

In make, any part of a line starting with "#" to the end of the line is
a comment, and make ignores it completely.

So, the reason the prerequisites are "ignored" is that your
Makefile.included file is never actually included, since the include is
commented out.  I removed the "#" from your example and it worked

 Paul D. Smith <address@hidden>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
   These are my opinions---Nortel Networks takes no responsibility for them.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]