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