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.
• General Search | Specifying a search path that applies to every prerequisite. | |
• Selective Search | Specifying a search path for a specified class of names. | |
• Search Algorithm | When and how search paths are applied. | |
• Recipes/Search | How to write recipes that work together with search paths. | |
• Implicit/Search | How search paths affect implicit rules. | |
• Libraries/Search | Directory search for link libraries. |
Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
https://www.gnu.org/software/make/manual/html_node/Directory-Search.html