]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
compat: restore support for $(INCLUDES) variable
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 30 Apr 2013 16:27:00 +0000 (18:27 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 30 Apr 2013 17:12:26 +0000 (19:12 +0200)
With the aim of avoiding the introduction of too much unneeded
differences and incompatibilities between Automake-NG and
mainline Automake.

See also commit v1.13.1b-166-g57c7200 (2013-04-19, compat: reinstate
support for obsolete $(INCLUDES) variable) in mainline Automake.

* automake.in (generate_makefile): The definition of the INCLUDES
variable now causes a warning in the 'obsolete' category rather than
a fatal error.

Suggested-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in

index 17e833ef14b2f74e26d9995c92d9dca705970f59..1bd994e554cd443731a6f33340a720de331af767 100644 (file)
@@ -6538,8 +6538,8 @@ sub generate_makefile
     }
   if (my $ovar = var ('INCLUDES'))
     {
-      reject_var $ovar,
-              "'INCLUDES' is obsolete; you should use 'AM_CPPFLAGS'"
+      msg_var 'obsolete', $ovar,
+              "'INCLUDES' is deprecated; you should use 'AM_CPPFLAGS'"
               . " (or '*_CPPFLAGS') instead"
     }