commit: b79b3a4be4d18a551831a680fbf73c6af169e0d9
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 21 07:41:44 2021 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Oct 21 07:41:44 2021 +0000
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=b79b3a4b
tests: add a convenience build target
This makes it easy to quickly compile all the tools without actually
running the testsuite.
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
libsandbox/Makefile | 2 +-
libsbutil/Makefile | 2 +-
tests/Makefile.am | 3 +++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/libsandbox/Makefile b/libsandbox/Makefile
index ab08445..2db82ff 100644
--- a/libsandbox/Makefile
+++ b/libsandbox/Makefile
@@ -1,4 +1,4 @@
# Helper for developers.
-all libsandbox: libsandbox/libsandbox.la ;
+all libsandbox libsandbox.la: libsandbox/libsandbox.la ;
clean: ; rm -f *.o *.l[ao] .libs/*
%: ; $(MAKE) -C .. $@
diff --git a/libsbutil/Makefile b/libsbutil/Makefile
index 608bccf..f5638c7 100644
--- a/libsbutil/Makefile
+++ b/libsbutil/Makefile
@@ -1,4 +1,4 @@
# Helper for developers.
-all libsbutil: libsbutil/libsbutil.la ;
+all libsbutil libsbutil.la: libsbutil/libsbutil.la ;
clean: ; rm -f *.o *.l[ao] .libs/*
%: ; $(MAKE) -C .. $@
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 52746ee..c899603 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -104,6 +104,9 @@ endif
TESTSUITEFLAGS = --jobs=`getconf _NPROCESSORS_ONLN || echo 1`
+# Helper target for devs to precompile.
+tests: $(check_PROGRAMS)
+
check-local: atconfig atlocal $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='src:tests' $(TESTSUITEFLAGS)