Hi Eric,
* Eric Blake wrote on Tue, Mar 04, 2008 at 02:57:51PM CET:
> According to Jim Meyering on 3/4/2008 4:37 AM:
> |>> + [AC_CONFIG_LINKS([GNUmakefile:GNUmakefile])])
> |> Until Automake is fixed, this will cause
> |> ./configure && make distclean
> |>
> |> to bogusly remove GNUmakefile.
> |
> | Rats! Thanks for the heads-up, Ralf.
>
> However, the automake manual states that "parts of the specification using
> shell variables will be ignored as far as cleaning and distributing is
> concerned". So how about this workaround?
Looks ok to me provided you've tested it, though I'd really rather
GNUmakefile=GNUmakefile
... AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile])
> (Should we also have a distclean-local rule in Makefile.am that removes
> the GNUmakefile symlink in VPATH builds, but is a no-op in in-place builds?)
That's exactly the way I want to fix it in Automake.
Cheers,
Ralf
> * configure.ac (AC_CONFIG_LINKS): Use shell variable to bypass
> automake distclean rules.