summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2021-07-20 10:53:34 -0400
committerZack Weinberg <zackw@panix.com>2021-07-20 12:14:36 -0400
commitdf31269ef1aa99f3a93cdfd36daabf8191573126 (patch)
tree156aa5f6f2975f3a4eeb59c1d9f4e0e93308c335
parent7146520b68a47ebd36d5949f543457579a4a261e (diff)
downloadlibxcrypt-df31269ef1aa99f3a93cdfd36daabf8191573126.tar.gz
libxcrypt-df31269ef1aa99f3a93cdfd36daabf8191573126.tar.bz2
libxcrypt-df31269ef1aa99f3a93cdfd36daabf8191573126.zip
Makefile: Add ‘test-programs’ utility target.
It is sometimes useful to compile all the test programs but not run them. Add a Makefile target that does this.
-rw-r--r--Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d0cca1d..86c4183 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -591,6 +591,10 @@ test_getrandom_fallbacks_LDFLAGS = \
$(AM_LDFLAGS)
endif
+# CI sometimes wants to compile all the test programs but not run them.
+test-programs: $(check_PROGRAMS)
+phony_targets += test-programs
+
# Additional checks to run in `make distcheck'.
distcheck-hook:
cd $(top_srcdir) && perlcritic ./