This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Bug in "distcheck" target?
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Roger Leigh <roger at whinlatter dot uklinux dot net>
- Cc: automake at gnu dot org
- Date: 18 Sep 2002 22:29:07 +0200
- Subject: Re: Bug in "distcheck" target?
- References: <877khk46rs.fsf@whinlatter.uklinux.net>
>>> "Roger" == Roger Leigh <roger@whinlatter.uklinux.net> writes:
[...]
Roger> However, this makes one very big assumption: every
Roger> installation directory will use $prefix as the path
Roger> prefix.
Yes. This way we make sure people can install the package with
--prefix=/usr, --prefix=/opt, --prefix ~/usr, or whatever.
Roger> This is usually the case, but not always. For example,
Roger> in the gimp-print project, we build a CUPS driver. For
Roger> this, the install path is obtained from "cups-config",
How about you honor the user's flags, and just issue a warning
if it's different from the output of cups-config?
Another idea is the have a --without-cups-config option that you
will set in DISTCHECK_CONFIGURE_FLAGS.
[...]
Roger> && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$$dc_install_base install \
Roger> && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$$dc_install_base installcheck \
Roger> && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$$dc_install_base uninstall \
Unfortunately `make installcheck' isn't expected to run in a
DESTDIR installation as it might run programs which read files
using the real $prefix.
[...]
--
Alexandre Duret-Lutz