Reputation: 487
Is it possible to execute 'make check' prior to 'make install' and abort the install if check failed?
The behavior should be like this:
edit:
I got it working by overriding the install rule in the top level Makefile.am like this:
install: check install-recursive
But I would rather have a solution that does not override the install target.
Upvotes: 2
Views: 378
Reputation: 57854
You can hook into the install process using the install-exec-local
or install-data-local
targets:
install-exec-local: check
Upvotes: 3