[Pkg-shadow-devel] [PATCH] */Makefile.am: Replace INCLUDES with AM_CPPFLAGS

W. Trevor King wking at tremily.us
Sat Apr 30 00:22:48 UTC 2016


Catch up with Automake's [1], which was part of v1.6b, cut 2002-07-28
[2].  Avoids:

  $ autoreconf -v -f --install
  ...
  libmisc/Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
  ...
  src/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
  ...

[1]: http://git.savannah.gnu.org/cgit/automake.git/commit/?id=1415d22f6203206bc393fc4ea233123ba579222d
     Summary: automake.in (generate_makefile): Suggest using AM_CPPFLAGS instead of INCLUDES
     Date: 2002-07-09
[2]: http://git.savannah.gnu.org/cgit/automake.git/tag/?id=Release-1-6b
---
Also posted to [1], but sending this to the list based on [2].

Cheers,
Trevor

[1]: https://github.com/shadow-maint/shadow/pull/17
[2]: http://pkg-shadow.alioth.debian.org/getinvolved.php

 libmisc/Makefile.am | 2 +-
 src/Makefile.am     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libmisc/Makefile.am b/libmisc/Makefile.am
index 76f3c05..e0b6d8c 100644
--- a/libmisc/Makefile.am
+++ b/libmisc/Makefile.am
@@ -1,7 +1,7 @@
 
 EXTRA_DIST = .indent.pro xgetXXbyYY.c
 
-INCLUDES = -I$(top_srcdir)/lib
+AM_CPPFLAGS = -I$(top_srcdir)/lib
 
 noinst_LIBRARIES = libmisc.a
 
diff --git a/src/Makefile.am b/src/Makefile.am
index dc520b5..54fa392 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,7 +7,7 @@ usbindir = ${prefix}/sbin
 suidperms = 4755
 sgidperms = 2755
 
-INCLUDES = \
+AM_CPPFLAGS = \
 	-I${top_srcdir}/lib \
 	-I$(top_srcdir)/libmisc
 
-- 
2.1.0.60.g85f0837




More information about the Pkg-shadow-devel mailing list