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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With