Trying to avoid a repeated search for a prerequisite (or target)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Trying to avoid a repeated search for a prerequisite (or target)

SF Markus Elfring

The variable “VPATH” has got a special meaning for the make software.

Thus, if a file that is listed as a target or prerequisite does not exist
in the current directory, make searches …

I would interpret this information also in the way that it indicates a few
optimisation possibilities to avoid the second search try there.

* A used path can eventually never fit to the current directory.
  Can this only happen with absolute paths?

* The relevant files refer to a separate build directory
  (instead of a source file directory).

So I imagine that the execution of make rules can be influenced by the detail
if an unique path was specified.
Will any efforts for the construction of such unique paths pay off?

I got another software development concern in this context:
How much can the usage of absolute paths influence the desired name resolution
between targets and prerequisites in make (static) pattern rules?


Bug-make mailing list
[hidden email]