Hi Benjamin,

* Benjamin Grauer wrote on Fri, Jun 02, 2006 at 05:48:35PM CEST:
> 
> i want to build a library and a testing program in one and the same
> directory (script below)
> 
> now what i want is, that the lib is build by default, but the Program
> only when i specially invoke it with
> 'make example'

Use EXTRA_PROGRAMS instead of bin_PROGRAMS if you don't want it
installed, and add an explicit `example' rule to depend on it.

Or you could (ab)use check_PROGRAMS, and use `make check'
(and add the program to TESTS, so that it is tested...)

Cheers,
Ralf


Reply via email to