]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
*/Makefile.am: Replace INCLUDES with AM_CPPFLAGS 17/head
authorW. Trevor King <wking@tremily.us>
Sat, 30 Apr 2016 00:10:23 +0000 (17:10 -0700)
committerW. Trevor King <wking@tremily.us>
Sat, 30 Apr 2016 00:30:18 +0000 (17:30 -0700)
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')
  ...

Consolidating with the earlier AM_CPPFLAGS avoids:

  $ autoreconf -v -f --install
  src/Makefile.am:72: warning: AM_CPPFLAGS multiply defined in condition TRUE ...
  src/Makefile.am:10: ... 'AM_CPPFLAGS' previously defined here
  autoreconf-2.69: Leaving directory `.'

[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

libmisc/Makefile.am
src/Makefile.am

index 76f3c052580d46c460300564fba633649230cc46..e0b6d8ca4907c04c4bc0c19a75be3f5018e91294 100644 (file)
@@ -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
 
index dc520b5d935ca41ad42df23d2a63ef08d892a8ea..3de9f4d12a70a63f34190a0b54fd7955c34bb1f9 100644 (file)
@@ -7,9 +7,10 @@ usbindir = ${prefix}/sbin
 suidperms = 4755
 sgidperms = 2755
 
-INCLUDES = \
+AM_CPPFLAGS = \
        -I${top_srcdir}/lib \
-       -I$(top_srcdir)/libmisc
+       -I$(top_srcdir)/libmisc \
+       -DLOCALEDIR=\"$(datadir)/locale\"
 
 # XXX why are login and su in /bin anyway (other than for
 # historical reasons)?
@@ -69,7 +70,6 @@ LDADD          = $(INTLLIBS) \
                 $(LIBTCB) \
                 $(top_builddir)/libmisc/libmisc.a \
                 $(top_builddir)/lib/libshadow.la
-AM_CPPFLAGS    = -DLOCALEDIR=\"$(datadir)/locale\"
 
 if ACCT_TOOLS_SETUID
 LIBPAM_SUID  = $(LIBPAM)