Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoconf/Automake: How to avoid passing the "check" option to AC_CONFIG_SUBDIRS

I'm using Autoconf to build my c++ project. It uses third party code which is also built with the help of Autoconf/Automake. So in my configure.ac I've got the following line:

AC_CONFIG_SUBDIRS([subdirectoryname])

Everything works fine, but I also use the feature to let tests be automatically made if make check is executed - which is done by the third party code as well. Because these tests take a while it's annoying to execute them each time I want to test my own code. So is there any way to avoid that the check option is passed to the subdirectory's Makefile?

Update: Overriding check-recursive does not seem to be an option, as my top-level Makefile.am looks (more or less) like this:

SUBDIRS=library src

So disabling checking on this level would also disable the checking inside my src folder. And that's not what I want to achieve. I just want to disable the checking in the library directory.

like image 481
aRestless Avatar asked Nov 30 '11 20:11

aRestless


1 Answers

Overriding check-recursive in your Makefile.am should work:

check-recursive:
     @true

or, if you only wanted to check in a specific directory:

check-recursive:
     $(MAKE) -C src check
like image 197
thiton Avatar answered Sep 21 '22 13:09

thiton