This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Can I force 'make install' to depend on 'make test'?
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: "Dr. David Kirkby" <drkirkby at ntlworld dot com>
- Cc: automake <automake at gnu dot org>
- Date: Mon, 24 Mar 2003 14:26:29 +0100 (CET)
- Subject: Re: Can I force 'make install' to depend on 'make test'?
Though I really don't think it's a good idea, have you tried just adding
install : check to your Makefile.am?
Anyways, the reason I don't think it's a good idea is that it will break
cross-compiling, as your test programs will probably not run on the build
host in that case..
HTH
rlc
NB: I've never tried adding install : check to a Makefile.am, so I'm not
*sure* it works, but I'd say it's wroth a try.. :)
On Mon, 24 Mar 2003, Dr. David Kirkby wrote:
> Sorry, I meant to say 'make check' not 'make test'. Can I force 'make
> check' to run if 'make install' prior to 'make check' being run?
>
> I guess I should really be saying that installing platform independent
> data files would depend on running 'make check' first, as there is
> nothing stopping someone installing the platform dependant binaries
> without running 'make check', but the platform independent data files
> are only created during the checking procedure.
>
> Does that make sense?