Next: Phony Targets, Previous: Using Wildcard Characters in File Names, Up: Writing Rules   [Contents][Index]


4.5 Searching Directories for Prerequisites

For large systems, it is often desirable to put sources in a separate directory from the binaries. The directory search features of make facilitate this by searching several directories automatically to find a prerequisite. When you redistribute the files among directories, you do not need to change the individual rules, just the search paths.

  • VPATH: Search Path for All Prerequisites
  • The vpath Directive
  • How Directory Searches are Performed
  • Writing Recipes with Directory Search
  • Directory Search and Implicit Rules
  • Directory Search for Link Libraries