On Fri, Nov 16, 2012 at 2:38 AM, Björn Stenberg <b...@enea.com> wrote: > Stefano Lattarini wrote: >> Couldn't you simply add a 'buil-tests' target that creates >> all the programs in $(TESTS)? Something as simple as: >> >> build-tests: $(TESTS) >> >> Then run it on the build system, before running "make check" on >> the embedded target. Or am I missing something? > > The "check" target depends on the test programs, which in turn depend on > their source code files. > > I want to install only the test programs and test data on target, leaving out > the the source and object files. That's why I created a "run" target that > does not depend on those files being present.
make check-TESTS should suffice to do the actual running of the tests, no?