Re: Can I force 'make install' to depend on 'make test'?

2003-03-31 Thread Eric Siegerman
On Mon, Mar 31, 2003 at 01:21:05AM +0100, Dr. David Kirkby wrote: To date I have never used a configure.ac file, only configure.in, but I will look at configure.ac too [...] They're the same thing. configure.ac is the preferred name; the older convention, configure.in, is still supported, but

Re: Can I force 'make install' to depend on 'make test'?

2003-03-30 Thread Dr. David Kirkby
Guido Draheim wrote: install-data-local : check That's the answer. In reality I have a last line in the configure.ac that says echo '#' make make check make install - it does remind a casual install-from-source guy to do a make check before going to make install. 't works pretty well,

Re: Can I force 'make install' to depend on 'make test'?

2003-03-25 Thread Dr. David Kirkby
Eric Siegerman wrote: On Tue, Mar 25, 2003 at 01:30:08AM +, Dr. David Kirkby wrote: [Bitmaps (.bmp files) are to be generated by make check, and then installed as examples by make install] How big are the bitmaps? If they're small enough, or compress well enough, it might be

Re: Can I force 'make install' to depend on 'make test'?

2003-03-25 Thread Ronald Landheer-Cieslak
On Tue, 25 Mar 2003, Dr. David Kirkby wrote: Ronald Landheer-Cieslak wrote: 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.. Can you suggest a better way? I'm open to

Can I force 'make install' to depend on 'make test'?

2003-03-24 Thread Dr. David Kirkby
I have a package which is supplied with a few examples files, which I want to install. So 'make install' should install them. I can do that okay. As part of the self-tests, running 'make check' will generate some more examples and check their integrity with an md5 checksum. I can do that okay.

Re: Can I force 'make install' to depend on 'make test'?

2003-03-24 Thread Dr. David Kirkby
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

Re: Can I force 'make install' to depend on 'make test'?

2003-03-24 Thread Ronald Landheer-Cieslak
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:

Re: Can I force 'make install' to depend on 'make test'?

2003-03-24 Thread Dr. David Kirkby
Ronald Landheer-Cieslak wrote: Though I really don't think it's a good idea, have you tried just adding install : check to your Makefile.am? No, I had not, I might try that - but see below. Anyways, the reason I don't think it's a good idea is that it will break cross-compiling, as your

Re: Can I force 'make install' to depend on 'make test'?

2003-03-24 Thread Eric Siegerman
On Tue, Mar 25, 2003 at 01:30:08AM +, Dr. David Kirkby wrote: [Bitmaps (.bmp files) are to be generated by make check, and then installed as examples by make install] How big are the bitmaps? If they're small enough, or compress well enough, it might be reasonable to just include them in

Re: Can I force 'make install' to depend on 'make test'?

2003-03-24 Thread Guido Draheim
install-data-local : check That's the answer. In reality I have a last line in the configure.ac that says echo '#' make make check make install - it does remind a casual install-from-source guy to do a make check before going to make install. 't works pretty well, since many do a simple mousing