From 1624ebdb159c780e06f43f5acb8d03e3f40ffe5c Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 8 Feb 2020 20:15:06 +0100 Subject: Make util/find-doc-nits runnable from the build tree Because we generate an increasing number of POD files, some of them end up in the build tree. This makes it difficult for find-doc-nits to work as desired when the build tree is separate from the source tree. The best supported way to make it work in such an environment is to run it from the build tree and let it use the build information from configdata.pm to find all the POD files. To make this smooth enough, we add a function 'files' that returns an array of file names corresponding to criteria from the caller. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/11045) --- Configurations/unix-Makefile.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Configurations') diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 14e6627d62..6777bb8de9 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -952,10 +952,10 @@ generate: generate_apps generate_crypto_bn generate_crypto_objects \ .PHONY: doc-nits cmd-nits doc-nits: build_generated - (cd $(SRCDIR); $(PERL) util/find-doc-nits -n -l -e ) + $(PERL) $(SRCDIR)/util/find-doc-nits -n -l -e cmd-nits: build_generated apps/openssl - (cd $(SRCDIR); $(PERL) util/find-doc-nits -c ) + $(PERL) $(SRCDIR)/util/find-doc-nits -c # Test coverage is a good idea for the future #coverage: $(PROGRAMS) $(TESTPROGRAMS) -- cgit v1.2.3