home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / info / make.info-5 (.txt) < prev    next >
GNU Info File  |  1993-09-26  |  49KB  |  887 lines

  1. This is Info file make.info, produced by Makeinfo-1.54 from the input
  2. file ./make.texinfo.
  3.    This file documents the GNU Make utility, which determines
  4. automatically which pieces of a large program need to be recompiled,
  5. and issues the commands to recompile them.
  6.    This is Edition 0.43, last updated 26 July 1993, of `The GNU Make
  7. Manual', for `make', Version 3.68 Beta.
  8.    Copyright (C) 1988, '89, '90, '91, '92, '93 Free Software
  9. Foundation, Inc.
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided that
  15. the entire resulting derived work is distributed under the terms of a
  16. permission notice identical to this one.
  17.    Permission is granted to copy and distribute translations of this
  18. manual into another language, under the above conditions for modified
  19. versions, except that this permission notice may be stated in a
  20. translation approved by the Free Software Foundation.
  21. File: make.info,  Node: Options Summary,  Prev: Testing,  Up: Running
  22. Summary of Options
  23. ==================
  24.    Here is a table of all the options `make' understands:
  25.      These options are ignored for compatibility with other versions of
  26.      `make'.
  27. `-C DIR'
  28. `--directory=DIR'
  29.      Change to directory DIR before reading the makefiles.  If multiple
  30.      `-C' options are specified, each is interpreted relative to the
  31.      previous one: `-C / -C etc' is equivalent to `-C /etc'.  This is
  32.      typically used with recursive invocations of `make' (*note
  33.      Recursive Use of `make': Recursion.).
  34. `--debug'
  35.      Print debugging information in addition to normal processing.  The
  36.      debugging information says which files are being considered for
  37.      remaking, which file-times are being compared and with what
  38.      results, which files actually need to be remade, which implicit
  39.      rules are considered and which are applied--everything interesting
  40.      about how `make' decides what to do.
  41. `--environment-overrides'
  42.      Give variables taken from the environment precedence over
  43.      variables from makefiles.  *Note Variables from the Environment:
  44.      Environment.
  45. `-f FILE'
  46. `--file=FILE'
  47. `--makefile=FILE'
  48.      Read the file named FILE as a makefile.  *Note Writing Makefiles:
  49.      Makefiles.
  50. `--help'
  51.      Remind you of the options that `make' understands and then exit.
  52. `--ignore-errors'
  53.      Ignore all errors in commands executed to remake files.  *Note
  54.      Errors in Commands: Errors.
  55. `-I DIR'
  56. `--include-dir=DIR'
  57.      Specifies a directory DIR to search for included makefiles.  *Note
  58.      Including Other Makefiles: Include.  If several `-I' options are
  59.      used to specify several directories, the directories are searched
  60.      in the order specified.
  61. `-j [JOBS]'
  62. `--jobs=[JOBS]'
  63.      Specifies the number of jobs (commands) to run simultaneously.
  64.      With no argument, `make' runs as many jobs simultaneously as
  65.      possible.  If there is more than one `-j' option, the last one is
  66.      effective.  *Note Parallel Execution: Parallel, for more
  67.      information on how commands are run.
  68. `--keep-going'
  69.      Continue as much as possible after an error.  While the target that
  70.      failed, and those that depend on it, cannot be remade, the other
  71.      dependencies of these targets can be processed all the same.
  72.      *Note Testing the Compilation of a Program: Testing.
  73. `-l [LOAD]'
  74. `--load-average[=LOAD]'
  75. `--max-load[=LOAD]'
  76.      Specifies that no new jobs (commands) should be started if there
  77.      are other jobs running and the load average is at least LOAD (a
  78.      floating-point number).  With no argument, removes a previous load
  79.      limit.  *Note Parallel Execution: Parallel.
  80. `--just-print'
  81. `--dry-run'
  82. `--recon'
  83.      Print the commands that would be executed, but do not execute them.
  84.      *Note Instead of Executing the Commands: Instead of Execution.
  85. `-o FILE'
  86. `--old-file=FILE'
  87. `--assume-old=FILE'
  88.      Do not remake the file FILE even if it is older than its
  89.      dependencies, and do not remake anything on account of changes in
  90.      FILE.  Essentially the file is treated as very old and its rules
  91.      are ignored.  *Note Avoiding Recompilation of Some Files: Avoiding
  92.      Compilation.
  93. `--print-data-base'
  94.      Print the data base (rules and variable values) that results from
  95.      reading the makefiles; then execute as usual or as otherwise
  96.      specified.  This also prints the version information given by the
  97.      `-v' switch (see below).  To print the data base without trying to
  98.      remake any files, use `make -p -f /dev/null'.
  99. `--question'
  100.      "Question mode".  Do not run any commands, or print anything; just
  101.      return an exit status that is zero if the specified targets are
  102.      already up to date, nonzero otherwise.  *Note Instead of Executing
  103.      the Commands: Instead of Execution.
  104. `--no-builtin-rules'
  105.      Eliminate use of the built-in implicit rules (*note Using Implicit
  106.      Rules: Implicit Rules.).  You can still define your own by writing
  107.      pattern rules (*note Defining and Redefining Pattern Rules:
  108.      Pattern Rules.).  The `-r' option also clears out the default list
  109.      of suffixes for suffix rules (*note Old-Fashioned Suffix Rules:
  110.      Suffix Rules.).  But you can still define your own suffixes with a
  111.      rule for `.SUFFIXES', and then define your own suffix rules.
  112. `--silent'
  113. `--quiet'
  114.      Silent operation; do not print the commands as they are executed.
  115.      *Note Command Echoing: Echoing.
  116. `--no-keep-going'
  117. `--stop'
  118.      Cancel the effect of the `-k' option.  This is never necessary
  119.      except in a recursive `make' where `-k' might be inherited from
  120.      the top-level `make' via `MAKEFLAGS' (*note Recursive Use of
  121.      `make': Recursion.) or if you set `-k' in `MAKEFLAGS' in your
  122.      environment.
  123. `--touch'
  124.      Touch files (mark them up to date without really changing them)
  125.      instead of running their commands.  This is used to pretend that
  126.      the commands were done, in order to fool future invocations of
  127.      `make'.  *Note Instead of Executing the Commands: Instead of
  128.      Execution.
  129. `--version'
  130.      Print the version of the `make' program plus a copyright, a list
  131.      of authors, and a notice that there is no warranty; then exit.
  132. `--print-directory'
  133.      Print a message containing the working directory both before and
  134.      after executing the makefile.  This may be useful for tracking
  135.      down errors from complicated nests of recursive `make' commands.
  136.      *Note Recursive Use of `make': Recursion.  (In practice, you
  137.      rarely need to specify this option since `make' does it for you;
  138.      see *Note The `--print-directory' Option: -w Option.)
  139. `--no-print-directory'
  140.      Disable printing of the working directory under `-w'.  This option
  141.      is useful when `-w' is turned on automatically, but you do not
  142.      want to see the extra messages.  *Note The `--print-directory'
  143.      Option: -w Option.
  144. `-W FILE'
  145. `--what-if=FILE'
  146. `--new-file=FILE'
  147. `--assume-new=FILE'
  148.      Pretend that the target FILE has just been modified.  When used
  149.      with the `-n' flag, this shows you what would happen if you were
  150.      to modify that file.  Without `-n', it is almost the same as
  151.      running a `touch' command on the given file before running `make',
  152.      except that the modification time is changed only in the
  153.      imagination of `make'.  *Note Instead of Executing the Commands:
  154.      Instead of Execution.
  155. `--warn-undefined-variables'
  156.      Issue a warning message whenever `make' sees a reference to an
  157.      undefined variable.  This can be helpful when you are trying to
  158.      debug makefiles which use variables in complex ways.
  159. File: make.info,  Node: Implicit Rules,  Next: Archives,  Prev: Running,  Up: Top
  160. Using Implicit Rules
  161. ********************
  162.    Certain standard ways of remaking target files are used very often.
  163. For example, one customary way to make an object file is from a C
  164. source file using the C compiler, `cc'.
  165.    "Implicit rules" tell `make' how to use customary techniques so that
  166. you do not have to specify them in detail when yo