[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in automake 1.8.3
From: |
James Amundson |
Subject: |
bug in automake 1.8.3 |
Date: |
Sat, 24 Apr 2004 15:03:45 -0500 |
I had a basic Makefile.am that looked like this:
Makefile.am:
----------------------------------------
foo:
echo "Do not use alt link"
touch foo
# dependencies for foo
foo: bar
foo: baz
----------------------------------------
I then needed to modify Makefile.am to allow for different compilation
methods depending on the conditional GCL_ALT_LINK:
Makefile.am:
----------------------------------------
if GCL_ALT_LINK
foo:
echo "Use alt link"
touch foo
else
foo:
echo "Do not use alt link"
touch foo
endif
# dependencies for foo
foo: bar
foo: baz
----------------------------------------
The above Makefile.am worked with automake 1.6.3. With automake
1.8.3, however, I get the following error messages:
----------------------------------------
src/Makefile.am:12: foo was already defined in condition !GCL_ALT_LINK,
which is included in condition TRUE ...
src/Makefile.am:6: ... `foo' previously defined here
src/Makefile.am:13: foo was already defined in condition !GCL_ALT_LINK,
which is included in condition TRUE ...
src/Makefile.am:6: ... `foo' previously defined here
----------------------------------------
I can work around this problem as follows, but I think the above
behavior should be considered a bug.
Makefile.am:
----------------------------------------
foo:
if GCL_ALT_LINK
echo "Use alt link"
touch foo
else
echo "Do not use alt link"
touch foo
endif
# dependencies for foo
foo: bar
foo: baz
----------------------------------------
Thank you for your hard work on automake.
--Jim Amundson
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug in automake 1.8.3,
James Amundson <=