|
|
|
|
This is make.info, produced by makeinfo version 5.2 from make.texi.
|
|
|
|
|
|
|
|
|
|
This file documents the GNU 'make' utility, which determines
|
|
|
|
|
automatically which pieces of a large program need to be recompiled, and
|
|
|
|
|
issues the commands to recompile them.
|
|
|
|
|
|
|
|
|
|
This is Edition 0.74, last updated 21 May 2016, of 'The GNU Make
|
|
|
|
|
Manual', for GNU 'make' version 4.2.1.
|
|
|
|
|
|
|
|
|
|
Copyright (C) 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 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
Permission is granted to copy, distribute and/or modify this
|
|
|
|
|
document under the terms of the GNU Free Documentation License,
|
|
|
|
|
Version 1.3 or any later version published by the Free Software
|
|
|
|
|
Foundation; with no Invariant Sections, with the Front-Cover Texts
|
|
|
|
|
being "A GNU Manual," and with the Back-Cover Texts as in (a)
|
|
|
|
|
below. A copy of the license is included in the section entitled
|
|
|
|
|
"GNU Free Documentation License."
|
|
|
|
|
|
|
|
|
|
(a) The FSF's Back-Cover Text is: "You have the freedom to copy and
|
|
|
|
|
modify this GNU manual. Buying copies from the FSF supports it in
|
|
|
|
|
developing GNU and promoting software freedom."
|
|
|
|
|
INFO-DIR-SECTION Software development
|
|
|
|
|
START-INFO-DIR-ENTRY
|
|
|
|
|
* Make: (make). Remake files automatically.
|
|
|
|
|
END-INFO-DIR-ENTRY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Indirect:
|
|
|
|
|
make.info-1: 1353
|
|
|
|
|
make.info-2: 307138
|
|
|
|
|
|
|
|
|
|
Tag Table:
|
|
|
|
|
(Indirect)
|
|
|
|
|
Node: Top1353
|
|
|
|
|
Node: Overview16535
|
|
|
|
|
Node: Preparing17548
|
|
|
|
|
Node: Reading18516
|
|
|
|
|
Node: Bugs19443
|
|
|
|
|
Node: Introduction21272
|
|
|
|
|
Node: Rule Introduction22865
|
|
|
|
|
Node: Simple Makefile24798
|
|
|
|
|
Node: How Make Works28534
|
|
|
|
|
Node: Variables Simplify31183
|
|
|
|
|
Node: make Deduces33389
|
|
|
|
|
Node: Combine By Prerequisite35122
|
|
|
|
|
Node: Cleanup36151
|
|
|
|
|
Node: Makefiles37569
|
|
|
|
|
Node: Makefile Contents38405
|
|
|
|
|
Node: Splitting Lines41578
|
|
|
|
|
Node: Makefile Names43338
|
|
|
|
|
Node: Include44945
|
|
|
|
|
Ref: Include-Footnote-148689
|
|
|
|
|
Node: MAKEFILES Variable48823
|
|
|
|
|
Node: Remaking Makefiles50364
|
|
|
|
|
Node: Overriding Makefiles54589
|
|
|
|
|
Node: Reading Makefiles56617
|
|
|
|
|
Node: Secondary Expansion60079
|
|
|
|
|
Node: Rules67540
|
|
|
|
|
Node: Rule Example70213
|
|
|
|
|
Node: Rule Syntax71066
|
|
|
|
|
Node: Prerequisite Types73661
|
|
|
|
|
Node: Wildcards76528
|
|
|
|
|
Node: Wildcard Examples78247
|
|
|
|
|
Node: Wildcard Pitfall79597
|
|
|
|
|
Node: Wildcard Function81386
|
|
|
|
|
Node: Directory Search83170
|
|
|
|
|
Node: General Search84305
|
|
|
|
|
Node: Selective Search86012
|
|
|
|
|
Node: Search Algorithm89002
|
|
|
|
|
Node: Recipes/Search91520
|
|
|
|
|
Node: Implicit/Search92843
|
|
|
|
|
Node: Libraries/Search93785
|
|
|
|
|
Node: Phony Targets95756
|
|
|
|
|
Node: Force Targets100593
|
|
|
|
|
Node: Empty Targets101630
|
|
|
|
|
Node: Special Targets102932
|
|
|
|
|
Node: Multiple Targets110805
|
|
|
|
|
Node: Multiple Rules112665
|
|
|
|
|
Node: Static Pattern114883
|
|
|
|
|
Node: Static Usage115535
|
|
|
|
|
Node: Static versus Implicit119254
|
|
|
|
|
Node: Double-Colon120994
|
|
|
|
|
Node: Automatic Prerequisites122754
|
|
|
|
|
Node: Recipes127015
|
|
|
|
|
Node: Recipe Syntax128187
|
|
|
|
|
Node: Splitting Recipe Lines130302
|
|
|
|
|
Node: Variables in Recipes133455
|
|
|
|
|
Node: Echoing134781
|
|
|
|
|
Node: Execution136056
|
|
|
|
|
Ref: Execution-Footnote-1137469
|
|
|
|
|
Node: One Shell137614
|
|
|
|
|
Node: Choosing the Shell140929
|
|
|
|
|
Node: Parallel145073
|
|
|
|
|
Node: Parallel Output147742
|
|
|
|
|
Node: Parallel Input152169
|
|
|
|
|
Node: Errors153288
|
|
|
|
|
Node: Interrupts156952
|
|
|
|
|
Node: Recursion158535
|
|
|
|
|
Node: MAKE Variable160632
|
|
|
|
|
Node: Variables/Recursion162875
|
|
|
|
|
Node: Options/Recursion168320
|
|
|
|
|
Node: -w Option174326
|
|
|
|
|
Node: Canned Recipes175321
|
|
|
|
|
Node: Empty Recipes178304
|
|
|
|
|
Node: Using Variables179744
|
|
|
|
|
Node: Reference183172
|
|
|
|
|
Node: Flavors184730
|
|
|
|
|
Node: Advanced190709
|
|
|
|
|
Node: Substitution Refs191214
|
|
|
|
|
Node: Computed Names192767
|
|
|
|
|
Node: Values197315
|
|
|
|
|
Node: Setting198232
|
|
|
|
|
Node: Appending201271
|
|
|
|
|
Node: Override Directive205213
|
|
|
|
|
Node: Multi-Line206840
|
|
|
|
|
Node: Undefine Directive209664
|
|
|
|
|
Node: Environment210753
|
|
|
|
|
Node: Target-specific213005
|
|
|
|
|
Node: Pattern-specific216032
|
|
|
|
|
Node: Suppressing Inheritance217879
|
|
|
|
|
Node: Special Variables219332
|
|
|
|
|
Node: Conditionals225741
|
|
|
|
|
Node: Conditional Example226454
|
|
|
|
|
Node: Conditional Syntax229017
|
|
|
|
|
Node: Testing Flags234777
|
|
|
|
|
Node: Functions235878
|
|
|
|
|
Node: Syntax of Functions237438
|
|
|
|
|
Node: Text Functions239772
|
|
|
|
|
Node: File Name Functions248337
|
|
|
|
|
Node: Conditional Functions253563
|
|
|
|
|
Node: Foreach Function255938
|
|
|
|
|
Node: File Function259151
|
|
|
|
|
Node: Call Function261708
|
|
|
|
|
Node: Value Function264593
|
|
|
|
|
Node: Eval Function266030
|
|
|
|
|
Node: Origin Function268306
|
|
|
|
|
Node: Flavor Function271532
|
|
|
|
|
Node: Make Control Functions272576
|
|
|
|
|
Node: Shell Function274262
|
|
|
|
|
Node: Guile Function276021
|
|
|
|
|
Node: Running276771
|
|
|
|
|
Node: Makefile Arguments278752
|
|
|
|
|
Node: Goals279468
|
|
|
|
|
Node: Instead of Execution284207
|
|
|
|
|
Node: Avoiding Compilation287922
|
|
|
|
|
Node: Overriding289897
|
|
|
|
|
Node: Testing292209
|
|
|
|
|
Node: Options Summary294093
|
|
|
|
|
Node: Implicit Rules307138
|
|
|
|
|
Node: Using Implicit309275
|
|
|
|
|
Node: Catalogue of Rules312794
|
|
|
|
|
Node: Implicit Variables322138
|
|
|
|
|
Node: Chained Rules327211
|
|
|
|
|
Node: Pattern Rules331221
|
|
|
|
|
Node: Pattern Intro332755
|
|
|
|
|
Node: Pattern Examples335337
|
|
|
|
|
Node: Automatic Variables337144
|
|
|
|
|
Node: Pattern Match344494
|
|
|
|
|
Node: Match-Anything Rules347817
|
|
|
|
|
Node: Canceling Rules351696
|
|
|
|
|
Node: Last Resort352410
|
|
|
|
|
Node: Suffix Rules354239
|
|
|
|
|
Node: Implicit Rule Search357964
|
|
|
|
|
Node: Archives361463
|
|
|
|
|
Node: Archive Members362168
|
|
|
|
|
Node: Archive Update363778
|
|
|
|
|
Node: Archive Symbols365689
|
|
|
|
|
Node: Archive Pitfalls366922
|
|
|
|
|
Node: Archive Suffix Rules367644
|
|
|
|
|
Node: Extending make369192
|
|
|
|
|
Node: Guile Integration370337
|
|
|
|
|
Node: Guile Types371565
|
|
|
|
|
Node: Guile Interface373985
|
|
|
|
|
Node: Guile Example375271
|
|
|
|
|
Node: Loading Objects377462
|
|
|
|
|
Node: load Directive378952
|
|
|
|
|
Node: Remaking Loaded Objects381706
|
|
|
|
|
Node: Loaded Object API382340
|
|
|
|
|
Node: Loaded Object Example389102
|
|
|
|
|
Node: Integrating make391349
|
|
|
|
|
Node: Job Slots392100
|
|
|
|
|
Node: POSIX Jobserver395532
|
|
|
|
|
Node: Windows Jobserver397926
|
|
|
|
|
Node: Terminal Output399279
|
|
|
|
|
Node: Features401668
|
|
|
|
|
Node: Missing410837
|
|
|
|
|
Node: Makefile Conventions414562
|
|
|
|
|
Node: Makefile Basics415541
|
|
|
|
|
Node: Utilities in Makefiles418708
|
|
|
|
|
Node: Command Variables421207
|
|
|
|
|
Node: DESTDIR424447
|
|
|
|
|
Node: Directory Variables426614
|
|
|
|
|
Node: Standard Targets441971
|
|
|
|
|
Node: Install Command Categories456077
|
|
|
|
|
Node: Quick Reference460603
|
|
|
|
|
Node: Error Messages473317
|
|
|
|
|
Node: Complex Makefile481213
|
|
|
|
|
Node: GNU Free Documentation License489831
|
|
|
|
|
Node: Concept Index514975
|
|
|
|
|
Node: Name Index586491
|
|
|
|
|
|
|
|
|
|
End Tag Table
|