automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

double assignment is an error in automake 1.5?


From: Assar Westerlund
Subject: double assignment is an error in automake 1.5?
Date: 28 Aug 2001 01:35:33 +0200
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6

I would like to check if it's the case that this is supposed to be an
error or not.  Being able to set a variable multiple times is a rather
common thing to do in Makefiles, so I was kind of assuming that would
be carried over to automake.

/assar

Makefile.am:
----------------------------------------------------------------------
foo = 1
foo = 1
----------------------------------------------------------------------

configure.in:
----------------------------------------------------------------------
AM_INIT_AUTOMAKE(foo,0.0)
AC_OUTPUT(Makefile)
----------------------------------------------------------------------

running: 

$ automake --version
automake (GNU automake) 1.5
Written by Tom Tromey <address@hidden>.

Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ automake --foreign -a
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
Makefile.am:1: foo multiply defined in condition TRUE

  foo (User, where = 1) =
  {
    TRUE => 1
  }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]