tests/certs/Makefile.am: avoid superfluous cert re-generation

Fixes #16897
Closes #16899
This commit is contained in:
Daniel Stenberg 2025-04-01 11:06:27 +02:00
parent 1dd361cde8
commit 66c95f05fa
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 9 additions and 9 deletions

View file

@ -158,7 +158,7 @@ perlcheck:
@if ! test -x "$(PERL)"; then echo "No perl!"; exit 2; fi
build-certs:
(cd certs && $(MAKE) build-certs)
(cd certs && $(MAKE))
test: perlcheck all
$(TEST) $(TFLAGS)

View file

@ -30,9 +30,16 @@ EXTRA_DIST = $(CERTCONFIG_CA) $(CERTCONFIGS) $(SRPFILES) CMakeLists.txt \
DISTCLEANFILES = $(GENERATEDCERTS)
all-am: test-ca.cacert
# Rebuild the certificates
clean-certs:
# Generate all certs in a single shot, but declare just a single target file
# to support GNU Make <4.3 without the "grouped explicit targets" feature.
test-ca.cacert: $(CERTCONFIG_CA) $(CERTCONFIGS) genserv.pl
$(PERL) $(srcdir)/genserv.pl test $(CERTCONFIGS)
clean-local:
rm -f $(GENERATEDCERTS) \
test-*.csr \
test-*.der \
@ -41,10 +48,3 @@ clean-certs:
test-ca.db* \
test-ca.raw* \
test-ca.srl
build-certs: test-ca.cacert
# Generate all certs in a single shot, but declare just a single target file
# to support GNU Make <4.3 without the "grouped explicit targets" feature.
test-ca.cacert: $(CERTCONFIG_CA) $(CERTCONFIGS) genserv.pl
$(PERL) $(srcdir)/genserv.pl test $(CERTCONFIGS)