Release GNU make 3.81.
[make.git] / NEWS
blobfdeb5be6a3de59100db32653e62ffafd15fc5e4c
1 GNU make NEWS                                               -*-indented-text-*-
2   History of user-visible changes.
3   1 April 2006
5 See the end of this file for copyrights and conditions.
7 All changes mentioned here are more fully described in the GNU make
8 manual, which is contained in this distribution as the file doc/make.texi.
9 See the README file and the GNU make manual for instructions for
10 reporting bugs.
12 Version 3.81
14 * GNU make is ported to OS/2.
16 * GNU make is ported to MinGW.  The MinGW build is only supported by
17   the build_w32.bat batch file; see the file README.W32 for more
18   details.
20 * WARNING: Future backward-incompatibility!
21   Up to and including this release, the '$?' variable does not contain
22   any prerequisite that does not exist, even though that prerequisite
23   might have caused the target to rebuild.  Starting with the _next_
24   release of GNU make, '$?' will contain all prerequisites that caused
25   the target to be considered out of date.  See this Savannah bug:
26   http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=16051
28 * WARNING: Backward-incompatibility!
29   GNU make now implements a generic "second expansion" feature on the
30   prerequisites of both explicit and implicit (pattern) rules.  In order
31   to enable this feature, the special target '.SECONDEXPANSION' must be
32   defined before the first target which takes advantage of it.  If this
33   feature is enabled then after all rules have been parsed the
34   prerequisites are expanded again, this time with all the automatic
35   variables in scope.  This means that in addition to using standard
36   SysV $$@ in prerequisites lists, you can also use complex functions
37   such as $$(notdir $$@) etc.  This behavior applies to implicit rules,
38   as well, where the second expansion occurs when the rule is matched.
39   However, this means that when '.SECONDEXPANSION' is enabled you must
40   double-quote any "$" in your filenames; instead of "foo: boo$$bar" you
41   now must write "foo: foo$$$$bar".  Note that the SysV $$@ etc. feature,
42   which used to be available by default, is now ONLY available when the
43   .SECONDEXPANSION target is defined.  If your makefiles take advantage
44   of this SysV feature you will need to update them.
46 * WARNING: Backward-incompatibility!
47   In order to comply with POSIX, the way in which GNU make processes
48   backslash-newline sequences in command strings has changed.  If your
49   makefiles use backslash-newline sequences inside of single-quoted
50   strings in command scripts you will be impacted by this change.  See
51   the GNU make manual subsection "Splitting Command Lines" (node
52   "Splitting Lines"), in section "Command Syntax", chapter "Writing the
53   Commands in Rules", for details.
55 * WARNING: Backward-incompatibility!
56   Some previous versions of GNU make had a bug where "#" in a function
57   invocation such as $(shell ...) was treated as a make comment.  A
58   workaround was to escape these with backslashes.  This bug has been
59   fixed: if your makefile uses "\#" in a function invocation the
60   backslash is now preserved, so you'll need to remove it.
62 * New command-line option: -L (--check-symlink-times).  On systems that
63   support symbolic links, if this option is given then GNU make will
64   use the most recent modification time of any symbolic links that are
65   used to resolve target files.  The default behavior remains as it
66   always has: use the modification time of the actual target file only.
68 * The "else" conditional line can now be followed by any other valid
69   conditional on the same line: this does not increase the depth of the
70   conditional nesting, so only one "endif" is required to close the
71   conditional.
73 * All pattern-specific variables that match a given target are now used
74   (previously only the first match was used).
76 * Target-specific variables can be marked as exportable using the
77   "export" keyword.
79 * In a recursive $(call ...) context, any extra arguments from the outer
80   call are now masked in the context of the inner call.
82 * Implemented a solution for the "thundering herd" problem with "-j -l".
83   This version of GNU make uses an algorithm suggested by Thomas Riedl
84   <thomas.riedl@siemens.com> to track the number of jobs started in the
85   last second and artificially adjust GNU make's view of the system's
86   load average accordingly.
88 * New special variables available in this release:
89    - .INCLUDE_DIRS: Expands to a list of directories that make searches
90      for included makefiles.
91    - .FEATURES: Contains a list of special features available in this
92      version of GNU make.
93    - .DEFAULT_GOAL: Set the name of the default goal make will
94      use if no goals are provided on the command line.
95    - MAKE_RESTARTS: If set, then this is the number of times this
96      instance of make has been restarted (see "How Makefiles Are Remade"
97      in the manual).
98    - New automatic variable: $| (added in 3.80, actually): contains all
99      the order-only prerequisites defined for the target.
101 * New functions available in this release:
102    - $(lastword ...) returns the last word in the list.  This gives
103      identical results as $(word $(words ...) ...), but is much faster.
104    - $(abspath ...) returns the absolute path (all "." and ".."
105      directories resolved, and any duplicate "/" characters removed) for
106      each path provided.
107    - $(realpath ...) returns the canonical pathname for each path
108      provided.  The canonical pathname is the absolute pathname, with
109      all symbolic links resolved as well.
110    - $(info ...) prints its arguments to stdout.  No makefile name or
111      line number info, etc. is printed.
112    - $(flavor ...) returns the flavor of a variable.
113    - $(or ...) provides a short-circuiting OR conditional: each argument
114      is expanded.  The first true (non-empty) argument is returned; no
115      further arguments are expanded.  Expands to empty if there are no
116      true arguments.
117    - $(and ...) provides a short-circuiting AND conditional: each
118      argument is expanded.  The first false (empty) argument is
119      returned; no further arguments are expanded.  Expands to the last
120      argument if all arguments are true.
122 * Changes made for POSIX compatibility:
123    - Only touch targets (under -t) if they have at least one command.
124    - Setting the SHELL make variable does NOT change the value of the
125      SHELL environment variable given to programs invoked by make.  As
126      an enhancement to POSIX, if you export the make variable SHELL then
127      it will be set in the environment, just as before.
129 * On MS Windows systems, explicitly setting SHELL to a pathname ending
130   in "cmd" or "cmd.exe" (case-insensitive) will force GNU make to use
131   the DOS command interpreter in batch mode even if a UNIX-like shell
132   could be found on the system.
134 * On VMS there is now support for case-sensitive filesystems such as ODS5.
135   See the readme.vms file for information.
137 * Parallel builds (-jN) no longer require a working Bourne shell on
138   Windows platforms.  They work even with the stock Windows shells, such
139   as cmd.exe and command.com.
141 * Updated to autoconf 2.59, automake 1.9.5, and gettext 0.14.1.  Users
142   should not be impacted.
144 * New translations for Swedish, Chinese (simplified), Ukrainian,
145   Belarusian, Finnish, Kinyarwandan, and Irish.  Many updated
146   translations.
148 A complete list of bugs fixed in this version is available here:
150   http://savannah.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=103
153 Version 3.80
155 * A new feature exists: order-only prerequisites.  These prerequisites
156   affect the order in which targets are built, but they do not impact
157   the rebuild/no-rebuild decision of their dependents.  That is to say,
158   they allow you to require target B be built before target A, without
159   requiring that target A will always be rebuilt if target B is updated.
160   Patch for this feature provided by Greg McGary <greg@mcgary.org>.
162 * For compatibility with SysV make, GNU make now supports the peculiar
163   syntax $$@, $$(@D), and $$(@F) in the prerequisites list of a rule.
164   This syntax is only valid within explicit and static pattern rules: it
165   cannot be used in implicit (suffix or pattern) rules.  Edouard G. Parmelan
166   <egp@free.fr> provided a patch implementing this feature; however, I
167   decided to implement it in a different way.
169 * The argument to the "ifdef" conditional is now expanded before it's
170   tested, so it can be a constructed variable name.
172   Similarly, the arguments to "export" (when not used in a variable
173   definition context) and "unexport" are also now expanded.
175 * A new function is defined: $(value ...).  The argument to this
176   function is the _name_ of a variable.  The result of the function is
177   the value of the variable, without having been expanded.
179 * A new function is defined: $(eval ...).  The arguments to this
180   function should expand to makefile commands, which will then be
181   evaluated as if they had appeared in the makefile.  In combination
182   with define/endef multiline variable definitions this is an extremely
183   powerful capability.  The $(value ...) function is also sometimes
184   useful here.
186 * A new built-in variable is defined, $(MAKEFILE_LIST).  It contains a
187   list of each makefile GNU make has read, or started to read, in the
188   order in which they were encountered.  So, the last filename in the
189   list when a makefile is just being read (before any includes) is the
190   name of the current makefile.
192 * A new built-in variable is defined: $(.VARIABLES).  When it is
193   expanded it returns a complete list of variable names defined by all
194   makefiles at that moment.
196 * A new command-line option is defined, -B or --always-make.  If
197   specified GNU make will consider all targets out-of-date even if they
198   would otherwise not be.
200 * The arguments to $(call ...) functions were being stored in $1, $2,
201   etc. as recursive variables, even though they are fully expanded
202   before assignment.  This means that escaped dollar signs ($$ etc.)
203   were not behaving properly.  Now the arguments are stored as simple
204   variables.  This may mean that if you added extra escaping to your
205   $(call ...) function arguments you will need to undo it now.
207 * The variable invoked by $(call ...) can now be recursive: unlike other
208   variables it can reference itself and this will not produce an error
209   when it is used as the first argument to $(call ...) (but only then).
211 * New pseudo-target .LOW_RESOLUTION_TIME, superseding the configure
212   option --disable-nsec-timestamps.  You might need this if your build
213   process depends on tools like "cp -p" preserving time stamps, since
214   "cp -p" (right now) doesn't preserve the subsecond portion of a time
215   stamp.
217 * Updated translations for French, Galician, German, Japanese, Korean,
218   and Russian.  New translations for Croatian, Danish, Hebrew, and
219   Turkish.
221 * Updated internationalization support to Gettext 0.11.5.
222   GNU make now uses Gettext's "external" feature, and does not include
223   any internationalization code itself.  Configure will search your
224   system for an existing implementation of GNU Gettext (only GNU Gettext
225   is acceptable) and use it if it exists.  If not, NLS will be disabled.
226   See ABOUT-NLS for more information.
228 * Updated to autoconf 2.54 and automake 1.7.  Users should not be impacted.
230 A complete list of bugs fixed in this version is available here:
232   http://savannah.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=102
235 Version 3.79.1
237 * .SECONDARY with no prerequisites now prevents any target from being
238   removed because make thinks it's an intermediate file, not just those
239   listed in the makefile.
241 * New configure option --disable-nsec-timestamps, but this was
242   superseded in later versions by the .LOW_RESOLUTION_TIME pseudo-target.
244 Version 3.79
246 * GNU make optionally supports internationalization and locales via the
247   GNU gettext (or local gettext if suitable) package.  See the ABOUT-NLS
248   file for more information on configuring GNU make for NLS.
250 * Previously, GNU make quoted variables such as MAKEFLAGS and
251   MAKEOVERRIDES for proper parsing by the shell.  This allowed them to
252   be used within make build scripts.  However, using them there is not
253   proper behavior: they are meant to be passed to subshells via the
254   environment.  Unfortunately the values were not quoted properly to be
255   passed through the environment.  This meant that make didn't properly
256   pass some types of command line values to submakes.
258   With this version we change that behavior: now these variables are
259   quoted properly for passing through the environment, which is the
260   correct way to do it.  If you previously used these variables
261   explicitly within a make rule you may need to re-examine your use for
262   correctness given this change.
264 * A new pseudo-target .NOTPARALLEL is available.  If defined, the
265   current makefile is run serially regardless of the value of -j.
266   However, submakes are still eligible for parallel execution.
268 * The --debug option has changed: it now allows optional flags
269   controlling the amount and type of debugging output.  By default only
270   a minimal amount information is generated, displaying the names of
271   "normal" targets (not makefiles) that were deemed out of date and in
272   need of being rebuilt.
274   Note that the -d option behaves as before: it takes no arguments and
275   all debugging information is generated.
277 * The `-p' (print database) output now includes filename and linenumber
278   information for variable definitions, to aid debugging.
280 * The wordlist function no longer reverses its arguments if the "start"
281   value is greater than the "end" value.  If that's true, nothing is
282   returned.
284 * Hartmut Becker provided many updates for the VMS port of GNU make.
285   See the readme.vms file for more details.
287 Version 3.78
289 * Two new functions, $(error ...) and $(warning ...) are available.  The
290   former will cause make to fail and exit immediately upon expansion of
291   the function, with the text provided as the error message.  The latter
292   causes the text provided to be printed as a warning message, but make
293   proceeds normally.
295 * A new function $(call ...) is available.  This allows users to create
296   their own parameterized macros and invoke them later.  Original
297   implementation of this function was provided by Han-Wen Nienhuys
298   <hanwen@cs.uu.nl>.
300 * A new function $(if ...) is available.  It provides if-then-else
301   capabilities in a builtin function.  Original implementation of this
302   function was provided by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
304 * Make defines a new variable, .LIBPATTERNS.  This variable controls how
305   library dependency expansion (dependencies like ``-lfoo'') is performed.
307 * Make accepts CRLF sequences as well as traditional LF, for
308   compatibility with makefiles created on other operating systems.
310 * Make accepts a new option: -R, or --no-builtin-variables.  This option
311   disables the definition of the rule-specific builtin variables (CC,
312   LD, AR, etc.).  Specifying this option forces -r (--no-builtin-rules)
313   as well.
315 * A "job server" feature, suggested by Howard Chu <hyc@highlandsun.com>.
317   On systems that support POSIX pipe(2) semantics, GNU make can now pass
318   -jN options to submakes rather than forcing them all to use -j1.  The
319   top make and all its sub-make processes use a pipe to communicate with
320   each other to ensure that no more than N jobs are started across all
321   makes.  To get the old behavior of -j back, you can configure make
322   with the --disable-job-server option.
324 * The confusing term "dependency" has been replaced by the more accurate
325   and standard term "prerequisite", both in the manual and in all GNU make
326   output.
328 * GNU make supports the "big archive" library format introduced in AIX 4.3.
330 * GNU make supports large files on AIX, HP-UX, and IRIX.  These changes
331   were provided by Paul Eggert <eggert@twinsun.com>.  (Large file
332   support for Solaris and Linux was introduced in 3.77, but the
333   configuration had issues: these have also been resolved).
335 * The Windows 95/98/NT (W32) version of GNU make now has native support
336   for the Cygnus Cygwin release B20.1 shell (bash).
338 * The GNU make regression test suite, long available separately "under
339   the table", has been integrated into the release.  You can invoke it
340   by running "make check" in the distribution.  Note that it requires
341   Perl (either Perl 4 or Perl 5) to run.
343 Version 3.77
345 * Implement BSD make's "?=" variable assignment operator.  The variable
346   is assigned the specified value only if that variable is not already
347   defined.
349 * Make defines a new variable, "CURDIR", to contain the current working
350   directory (after the -C option, if any, has been processed).
351   Modifying this variable has no effect on the operation of make.
353 * Make defines a new default RCS rule, for new-style master file
354   storage: ``% :: RCS/%'' (note no ``,v'' suffix).
356   Make defines new default rules for DOS-style C++ file naming
357   conventions, with ``.cpp'' suffixes.  All the same rules as for
358   ``.cc'' and ``.C'' suffixes are provided, along with LINK.cpp and
359   COMPILE.cpp macros (which default to the same value as LINK.cc and
360   COMPILE.cc).  Note CPPFLAGS is still C preprocessor flags!  You should
361   use CXXFLAGS to change C++ compiler flags.
363 * A new feature, "target-specific variable values", has been added.
364   This is a large change so please see the appropriate sections of the
365   manual for full details.  Briefly, syntax like this:
367     TARGET: VARIABLE = VALUE
369   defines VARIABLE as VALUE within the context of TARGET.  This is
370   similar to SunOS make's "TARGET := VARIABLE = VALUE" feature.  Note
371   that the assignment may be of any type, not just recursive, and that
372   the override keyword is available.
374   COMPATIBILITY: This new syntax means that if you have any rules where
375   the first or second dependency has an equal sign (=) in its name,
376   you'll have to escape them with a backslash: "foo : bar\=baz".
377   Further, if you have any dependencies which already contain "\=",
378   you'll have to escape both of them: "foo : bar\\\=baz".
380 * A new appendix listing the most common error and warning messages
381   generated by GNU make, with some explanation, has been added to the
382   GNU make User's Manual.
384 * Updates to the GNU make Customs library support (see README.customs).
386 * Updates to the Windows 95/NT port from Rob Tulloh (see README.W32),
387   and to the DOS port from Eli Zaretski (see README.DOS).
389 Version 3.76.1
391 * Small (but serious) bug fix.  Quick rollout to get into the GNU source CD.
393 Version 3.76
395 * GNU make now uses automake to control Makefile.in generation.  This
396   should make it more consistent with the GNU standards.
398 * VPATH functionality has been changed to incorporate the VPATH+ patch,
399   previously maintained by Paul Smith <psmith@baynetworks.com>.  See the
400   manual.
402 * Make defines a new variable, `MAKECMDGOALS', to contain the goals that
403   were specified on the command line, if any.  Modifying this variable
404   has no effect on the operation of make.
406 * A new function, `$(wordlist S,E,TEXT)', is available: it returns a
407   list of words from number S to number E (inclusive) of TEXT.
409 * Instead of an error, detection of future modification times gives a
410   warning and continues.  The warning is repeated just before GNU make
411   exits, so it is less likely to be lost.
413 * Fix the $(basename) and $(suffix) functions so they only operate on
414   the last filename, not the entire string:
416       Command              Old Result             New Result
417       -------              ----------             ----------
418     $(basename a.b)        a                      a
419     $(basename a.b/c)      a                      a.b/c
420     $(suffix a.b)          b                      b
421     $(suffix a.b/c)        b/c                    <empty>
423 * The $(strip) function now removes newlines as well as TABs and spaces.
425 * The $(shell) function now changes CRLF (\r\n) pairs to a space as well
426   as newlines (\n).
428 * Updates to the Windows 95/NT port from Rob Tulloh (see README.W32).
430 * Eli Zaretskii has updated the port to 32-bit protected mode on MSDOS
431   and MS-Windows, building with the DJGPP v2 port of GNU C/C++ compiler
432   and utilities.  See README.DOS for details, and direct all questions
433   concerning this port to Eli Zaretskii <eliz@is.elta.co.il> or DJ
434   Delorie <dj@delorie.com>.
436 * John W. Eaton has updated the VMS port to support libraries and VPATH.
438 Version 3.75
440 * The directory messages printed by `-w' and implicitly in sub-makes,
441   are now omitted if Make runs no commands and has no other messages to print.
443 * Make now detects files that for whatever reason have modification times
444   in the future and gives an error.  Files with such impossible timestamps
445   can result from unsynchronized clocks, or archived distributions
446   containing bogus timestamps; they confuse Make's dependency engine
447   thoroughly.
449 * The new directive `sinclude' is now recognized as another name for
450   `-include', for compatibility with some other Makes.
452 * Aaron Digulla has contributed a port to AmigaDOS.  See README.Amiga for
453   details, and direct all Amiga-related questions to <digulla@fh-konstanz.de>.
455 * Rob Tulloh of Tivoli Systems has contributed a port to Windows NT or 95.
456   See README.W32 for details, and direct all Windows-related questions to
457   <rob_tulloh@tivoli.com>.
459 Version 3.73
461 * Converted to use Autoconf version 2, so `configure' has some new options.
462   See INSTALL for details.
464 * You can now send a SIGUSR1 signal to Make to toggle printing of debugging
465   output enabled by -d, at any time during the run.
467 Version 3.72
469 * DJ Delorie has ported Make to MS-DOS using the GO32 extender.
470   He is maintaining the DOS port, not the GNU Make maintainer;
471   please direct bugs and questions for DOS to <djgpp@sun.soe.clarkson.edu>.
472   MS-DOS binaries are available for FTP from ftp.simtel.net in
473   /pub/simtelnet/gnu/djgpp/.
475 * The `MAKEFLAGS' variable (in the environment or in a makefile) can now
476   contain variable definitions itself; these are treated just like
477   command-line variable definitions.  Make will automatically insert any
478   variable definitions from the environment value of `MAKEFLAGS' or from
479   the command line, into the `MAKEFLAGS' value exported to children.  The
480   `MAKEOVERRIDES' variable previously included in the value of `$(MAKE)'
481   for sub-makes is now included in `MAKEFLAGS' instead.  As before, you can
482   reset `MAKEOVERRIDES' in your makefile to avoid putting all the variables
483   in the environment when its size is limited.
485 * If `.DELETE_ON_ERROR' appears as a target, Make will delete the target of
486   a rule if it has changed when its commands exit with a nonzero status,
487   just as when the commands get a signal.
489 * The automatic variable `$+' is new.  It lists all the dependencies like
490   `$^', but preserves duplicates listed in the makefile.  This is useful
491   for linking rules, where library files sometimes need to be listed twice
492   in the link order.
494 * You can now specify the `.IGNORE' and `.SILENT' special targets with
495   dependencies to limit their effects to those files.  If a file appears as
496   a dependency of `.IGNORE', then errors will be ignored while running the
497   commands to update that file.  Likewise if a file appears as a dependency
498   of `.SILENT', then the commands to update that file will not be printed
499   before they are run.  (This change was made to conform to POSIX.2.)
501 Version 3.71
503 * The automatic variables `$(@D)', `$(%D)', `$(*D)', `$(<D)', `$(?D)', and
504   `$(^D)' now omit the trailing slash from the directory name.  (This change
505   was made to comply with POSIX.2.)
507 * The source distribution now includes the Info files for the Make manual.
508   There is no longer a separate distribution containing Info and DVI files.
510 * You can now set the variables `binprefix' and/or `manprefix' in
511   Makefile.in (or on the command line when installing) to install GNU make
512   under a name other than `make' (i.e., ``make binprefix=g install''
513   installs GNU make as `gmake').
515 * The built-in Texinfo rules use the new variables `TEXI2DVI_FLAGS' for
516   flags to the `texi2dvi' script, and `MAKEINFO_FLAGS' for flags to the
517   Makeinfo program.
519 * The exit status of Make when it runs into errors is now 2 instead of 1.
520   The exit status is 1 only when using -q and some target is not up to date.
521   (This change was made to comply with POSIX.2.)
523 Version 3.70
525 * It is no longer a fatal error to have a NUL character in a makefile.
526   You should never put a NUL in a makefile because it can have strange
527   results, but otherwise empty lines full of NULs (such as produced by
528   the `xmkmf' program) will always work fine.
530 * The error messages for nonexistent included makefiles now refer to the
531   makefile name and line number where the `include' appeared, so Emacs's
532   C-x ` command takes you there (in case it's a typo you need to fix).
534 Version 3.69
536 * Implicit rule search for archive member references is now done in the
537   opposite order from previous versions: the whole target name `LIB(MEM)'
538   first, and just the member name and parentheses `(MEM)' second.
540 * Make now gives an error for an unterminated variable or function reference.
541   For example, `$(foo' with no matching `)' or `${bar' with no matching `}'.
543 * The new default variable `MAKE_VERSION' gives the version number of
544   Make, and a string describing the remote job support compiled in (if any).
545   Thus the value (in this release) is something like `3.69' or `3.69-Customs'.
547 * Commands in an invocation of the `shell' function are no longer run with
548   a modified environment like target commands are.  As in versions before
549   3.68, they now run with the environment that `make' started with.  We
550   have reversed the change made in version 3.68 because it turned out to
551   cause a paradoxical situation in cases like:
553         export variable = $(shell echo value)
555   When Make attempted to put this variable in the environment for a target
556   command, it would try expand the value by running the shell command
557   `echo value'.  In version 3.68, because it constructed an environment
558   for that shell command in the same way, Make would begin to go into an
559   infinite loop and then get a fatal error when it detected the loop.
561 * The commands given for `.DEFAULT' are now used for phony targets with no
562   commands.
564 Version 3.68
566 * You can list several archive member names inside parenthesis:
567   `lib(mem1 mem2 mem3)' is equivalent to `lib(mem1) lib(mem2) lib(mem3)'.
569 * You can use wildcards inside archive member references.  For example,
570   `lib(*.o)' expands to all existing members of `lib' whose names end in
571   `.o' (e.g. `lib(a.o) lib(b.o)'); `*.a(*.o)' expands to all such members
572   of all existing files whose names end in `.a' (e.g. `foo.a(a.o)
573   foo.a(b.o) bar.a(c.o) bar.a(d.o)'.
575 * A suffix rule `.X.a' now produces two pattern rules:
576         (%.o): %.X      # Previous versions produced only this.
577         %.a: %.X        # Now produces this as well, just like other suffixes.
579 * The new flag `--warn-undefined-variables' says to issue a warning message
580   whenever Make expands a reference to an undefined variable.
582 * The new `-include' directive is just like `include' except that there is
583   no error (not even a warning) for a nonexistent makefile.
585 * Commands in an invocation of the `shell' function are now run with a
586   modified environment like target commands are, so you can use `export' et
587   al to set up variables for them.  They used to run with the environment
588   that `make' started with.
590 Version 3.66
592 * `make --version' (or `make -v') now exits immediately after printing
593   the version number.
595 Version 3.65
597 * Make now supports long-named members in `ar' archive files.
599 Version 3.64
601 * Make now supports the `+=' syntax for a variable definition which appends
602   to the variable's previous value.  See the section `Appending More Text
603   to Variables' in the manual for full details.
605 * The new option `--no-print-directory' inhibits the `-w' or
606   `--print-directory' feature.  Make turns on `--print-directory'
607   automatically if you use `-C' or `--directory', and in sub-makes; some
608   users have found this behavior undesirable.
610 * The built-in implicit rules now support the alternative extension
611   `.txinfo' for Texinfo files, just like `.texinfo' and `.texi'.
613 Version 3.63
615 * Make now uses a standard GNU `configure' script.  See the new file
616   INSTALL for the new (and much simpler) installation procedure.
618 * There is now a shell script to build Make the first time, if you have no
619   other `make' program.  `build.sh' is created by `configure'; see README.
621 * GNU Make now completely conforms to the POSIX.2 specification for `make'.
623 * Elements of the `$^' and `$?' automatic variables that are archive
624   member references now list only the member name, as in Unix and POSIX.2.
626 * You should no longer ever need to specify the `-w' switch, which prints
627   the current directory before and after Make runs.  The `-C' switch to
628   change directory, and recursive use of Make, now set `-w' automatically.
630 * Multiple double-colon rules for the same target will no longer have their
631   commands run simultaneously under -j, as this could result in the two
632   commands trying to change the file at the same time and interfering with
633   one another.
635 * The `SHELL' variable is now never taken from the environment.
636   Each makefile that wants a shell other than the default (/bin/sh) must
637   set SHELL itself.  SHELL is always exported to child processes.
638   This change was made for compatibility with POSIX.2.
640 * Make now accepts long options.  There is now an informative usage message
641   that tells you what all the options are and what they do.  Try `make --help'.
643 * There are two new directives: `export' and `unexport'.  All variables are
644   no longer automatically put into the environments of the commands that
645   Make runs.  Instead, only variables specified on the command line or in
646   the environment are exported by default.  To export others, use:
647         export VARIABLE
648   or you can define variables with:
649         export VARIABLE = VALUE
650   or:
651         export VARIABLE := VALUE
652   You can use just:
653         export
654   or:
655         .EXPORT_ALL_VARIABLES:
656   to get the old behavior.  See the node `Variables/Recursion' in the manual
657   for a full description.
659 * The commands from the `.DEFAULT' special target are only applied to
660   targets which have no rules at all, not all targets with no commands.
661   This change was made for compatibility with Unix make.
663 * All fatal error messages now contain `***', so they are easy to find in
664   compilation logs.
666 * Dependency file names like `-lNAME' are now replaced with the actual file
667   name found, as with files found by normal directory search (VPATH).
668   The library file `libNAME.a' may now be found in the current directory,
669   which is checked before VPATH; the standard set of directories (/lib,
670   /usr/lib, /usr/local/lib) is now checked last.
671   See the node `Libraries/Search' in the manual for full details.
673 * A single `include' directive can now specify more than one makefile to
674   include, like this:
675         include file1 file2
676   You can also use shell file name patterns in an `include' directive:
677         include *.mk
679 * The default directories to search for included makefiles, and for
680   libraries specified with `-lNAME', are now set by configuration.
682 * You can now use blanks as well as colons to separate the directories in a
683   search path for the `vpath' directive or the `VPATH' variable.
685 * You can now use variables and functions in the left hand side of a
686   variable assignment, as in "$(foo)bar = value".
688 * The `MAKE' variable is always defined as `$(MAKE_COMMAND) $(MAKEOVERRIDES)'.
689   The `MAKE_COMMAND' variable is now defined to the name with which make
690   was invoked.
692 * The built-in rules for C++ compilation now use the variables `$(CXX)' and
693   `$(CXXFLAGS)' instead of `$(C++)' and `$(C++FLAGS)'.  The old names had
694   problems with shells that cannot have `+' in environment variable names.
696 * The value of a recursively expanded variable is now expanded when putting
697   it into the environment for child processes.  This change was made for
698   compatibility with Unix make.
700 * A rule with no targets before the `:' is now accepted and ignored.
701   This change was made for compatibility with SunOS 4 make.
702   We do not recommend that you write your makefiles to take advantage of this.
704 * The `-I' switch can now be used in MAKEFLAGS, and are put there
705   automatically just like other switches.
707 Version 3.61
709 * Built-in rules for C++ source files with the `.C' suffix.
710   We still recommend that you use `.cc' instead.
712 * If commands are given too many times for a single target,
713   the last set given is used, and a warning message is printed.
715 * Error messages about makefiles are in standard GNU error format,
716   so C-x ` in Emacs works on them.
718 * Dependencies of pattern rules which contain no % need not actually exist
719   if they can be created (just like dependencies which do have a %).
721 Version 3.60
723 * A message is always printed when Make decides there is nothing to be done.
724   It used to be that no message was printed for top-level phony targets
725   (because "`phony' is up to date" isn't quite right).  Now a different
726   message "Nothing to be done for `phony'" is printed in that case.
728 * Archives on AIX now supposedly work.
730 * When the commands specified for .DEFAULT are used to update a target,
731   the $< automatic variable is given the same value as $@ for that target.
732   This is how Unix make behaves, and this behavior is mandated by POSIX.2.
734 Version 3.59
736 * The -n, -q, and -t options are not put in the `MAKEFLAGS' and `MFLAG'
737   variables while remaking makefiles, so recursive makes done while remaking
738   makefiles will behave properly.
740 * If the special target `.NOEXPORT' is specified in a makefile,
741   only variables that came from the environment and variables
742   defined on the command line are exported.
744 Version 3.58
746 * Suffix rules may have dependencies (which are ignored).
748 Version 3.57
750 * Dependencies of the form `-lLIB' are searched for as /usr/local/lib/libLIB.a
751   as well as libLIB.a in /usr/lib, /lib, the current directory, and VPATH.
753 Version 3.55
755 * There is now a Unix man page for GNU Make.  It is certainly not a replacement
756 for the Texinfo manual, but it documents the basic functionality and the
757 switches.  For full documentation, you should still read the Texinfo manual.
758 Thanks to Dennis Morse of Stanford University for contributing the initial
759 version of this.
761 * Variables which are defined by default (e.g., `CC') will no longer be put
762 into the environment for child processes.  (If these variables are reset by the
763 environment, makefiles, or the command line, they will still go into the
764 environment.)
766 * Makefiles which have commands but no dependencies (and thus are always
767   considered out of date and in need of remaking), will not be remade (if they
768   were being remade only because they were makefiles).  This means that GNU
769   Make will no longer go into an infinite loop when fed the makefiles that
770   `imake' (necessary to build X Windows) produces.
772 * There is no longer a warning for using the `vpath' directive with an explicit
773 pathname (instead of a `%' pattern).
775 Version 3.51
777 * When removing intermediate files, only one `rm' command line is printed,
778 listing all file names.
780 * There are now automatic variables `$(^D)', `$(^F)', `$(?D)', and `$(?F)'.
781 These are the directory-only and file-only versions of `$^' and `$?'.
783 * Library dependencies given as `-lNAME' will use "libNAME.a" in the current
784 directory if it exists.
786 * The automatic variable `$($/)' is no longer defined.
788 * Leading `+' characters on a command line make that line be executed even
789 under -n, -t, or -q (as if the line contained `$(MAKE)').
791 * For command lines containing `$(MAKE)', `${MAKE}', or leading `+' characters,
792 only those lines are executed, not their entire rules.
793 (This is how Unix make behaves for lines containing `$(MAKE)' or `${MAKE}'.)
795 Version 3.50
797 * Filenames in rules will now have ~ and ~USER expanded.
799 * The `-p' output has been changed so it can be used as a makefile.
800 (All information that isn't specified by makefiles is prefaced with comment
801 characters.)
803 Version 3.49
805 * The % character can be quoted with backslash in implicit pattern rules,
806 static pattern rules, `vpath' directives, and `patsubst', `filter', and
807 `filter-out' functions.  A warning is issued if a `vpath' directive's
808 pattern contains no %.
810 * The `wildcard' variable expansion function now expands ~ and ~USER.
812 * Messages indicating failed commands now contain the target name:
813         make: *** [target] Error 1
815 * The `-p' output format has been changed somewhat to look more like
816 makefile rules and to give all information that Make has about files.
818 Version 3.48
820 Version 3.47
822 * The `-l' switch with no argument removes any previous load-average limit.
824 * When the `-w' switch is in effect, and Make has updated makefiles,
825 it will write a `Leaving directory' messagfe before re-executing itself.
826 This makes the `directory change tracking' changes to Emacs's compilation
827 commands work properly.
829 Version 3.46
831 * The automatic variable `$*' is now defined for explicit rules,
832 as it is in Unix make.
834 Version 3.45
836 * The `-j' switch is now put in the MAKEFLAGS and MFLAGS variables when
837 specified without an argument (indicating infinite jobs).
838 The `-l' switch is not always put in the MAKEFLAGS and MFLAGS variables.
840 * Make no longer checks hashed directories after running commands.
841 The behavior implemented in 3.41 caused too much slowdown.
843 Version 3.44
845 * A dependency is NOT considered newer than its dependent if
846 they have the same modification time.  The behavior implemented
847 in 3.43 conflicts with RCS.
849 Version 3.43
851 * Dependency loops are no longer fatal errors.
853 * A dependency is considered newer than its dependent if
854 they have the same modification time.
856 Version 3.42
858 * The variables F77 and F77FLAGS are now set by default to $(FC) and
859 $(FFLAGS).  Makefiles designed for System V make may use these variables in
860 explicit rules and expect them to be set.  Unfortunately, there is no way to
861 make setting these affect the Fortran implicit rules unless FC and FFLAGS
862 are not used (and these are used by BSD make).
864 Version 3.41
866 * Make now checks to see if its hashed directories are changed by commands.
867 Other makes that hash directories (Sun, 4.3 BSD) don't do this.
869 Version 3.39
871 * The `shell' function no longer captures standard error output.
873 Version 3.32
875 * A file beginning with a dot can be the default target if it also contains
876 a slash (e.g., `../bin/foo').  (Unix make allows this as well.)
878 Version 3.31
880 * Archive member names are truncated to 15 characters.
882 * Yet more USG stuff.
884 * Minimal support for Microport System V (a 16-bit machine and a
885 brain-damaged compiler).  This has even lower priority than other USG
886 support, so if it gets beyond trivial, I will take it out completely.
888 * Revamped default implicit rules (not much visible change).
890 * The -d and -p options can come from the environment.
892 Version 3.30
894 * Improved support for USG and HPUX (hopefully).
896 * A variable reference like `$(foo:a=b)', if `a' contains a `%', is
897 equivalent to `$(patsubst a,b,$(foo))'.
899 * Defining .DEFAULT with no deps or commands clears its commands.
901 * New default implicit rules for .S (cpp, then as), and .sh (copy and make
902 executable).  All default implicit rules that use cpp (even indirectly), use
903 $(CPPFLAGS).
905 Version 3.29
907 * Giving the -j option with no arguments gives you infinite jobs.
909 Version 3.28
911 * New option: "-l LOAD" says not to start any new jobs while others are
912 running if the load average is not below LOAD (a floating-point number).
914 * There is support in place for implementations of remote command execution
915 in Make.  See the file remote.c.
917 Version 3.26
919 * No more than 10 directories will be kept open at once.
920 (This number can be changed by redefining MAX_OPEN_DIRECTORIES in dir.c.)
922 Version 3.25
924 * Archive files will have their modification times recorded before doing
925 anything that might change their modification times by updating an archive
926 member.
928 Version 3.20
930 * The `MAKELEVEL' variable is defined for use by makefiles.
932 Version 3.19
934 * The recursion level indications in error messages are much shorter than
935 they were in version 3.14.
937 Version 3.18
939 * Leading spaces before directives are ignored (as documented).
941 * Included makefiles can determine the default goal target.
942 (System V Make does it this way, so we are being compatible).
944 Version 3.14.
946 * Variables that are defaults built into Make will not be put in the
947 environment for children.  This just saves some environment space and,
948 except under -e, will be transparent to sub-makes.
950 * Error messages from sub-makes will indicate the level of recursion.
952 * Hopefully some speed-up for large directories due to a change in the
953 directory hashing scheme.
955 * One child will always get a standard input that is usable.
957 * Default makefiles that don't exist will be remade and read in.
959 Version 3.13.
961 * Count parentheses inside expansion function calls so you can
962 have nested calls: `$(sort $(foreach x,a b,$(x)))'.
964 Version 3.12.
966 * Several bug fixes, including USG and Sun386i support.
968 * `shell' function to expand shell commands a la `
970 * If the `-d' flag is given, version information will be printed.
972 * The `-c' option has been renamed to `-C' for compatibility with tar.
974 * The `-p' option no longer inhibits other normal operation.
976 * Makefiles will be updated and re-read if necessary.
978 * Can now run several commands at once (parallelism), -j option.
980 * Error messages will contain the level of Make recursion, if any.
982 * The `MAKEFLAGS' and `MFLAGS' variables will be scanned for options after
983 makefiles are read.
985 * A double-colon rule with no dependencies will always have its commands run.
986 (This is how both the BSD and System V versions of Make do it.)
988 Version 3.05
990 (Changes from versions 1 through 3.05 were never recorded.  Sorry.)
992 -------------------------------------------------------------------------------
993 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
994 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
995 Foundation, Inc.
996 This file is part of GNU Make.
998 GNU Make is free software; you can redistribute it and/or modify it under the
999 terms of the GNU General Public License as published by the Free Software
1000 Foundation; either version 2, or (at your option) any later version.
1002 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
1003 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
1004 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
1006 You should have received a copy of the GNU General Public License along with
1007 GNU Make; see the file COPYING.  If not, write to the Free Software
1008 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.