]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Configurations/unix-Makefile.tmpl: Ensure that md-nits always works
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Oct 2023 08:24:38 +0000 (10:24 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 2 Oct 2023 10:38:51 +0000 (12:38 +0200)
The body of the "md-nits" Makefile target assumed an in source build tree.
This change ensures that it works correctly when called from an out-of-source
build tree as well.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22240)

Configurations/unix-Makefile.tmpl

index 6bdbf31d08025f5b9b94831fdf63c4f9a8e6ed62..3d9ce086f9496a11d4990f52d6dfbda78e56824b 100644 (file)
@@ -1146,7 +1146,7 @@ doc-nits: build_generated_pods ## Evaluate OpenSSL documentation
 # Finally, there's a Node.js version, which we haven't tried, that
 # can be found at https://github.com/DavidAnson/markdownlint
 md-nits: ## Evaluate markdown files via "mdl"
-       mdl -s util/markdownlint.rb .
+       mdl -s $(SRCDIR)/util/markdownlint.rb .
 
 # Test coverage is a good idea for the future
 #coverage: $(PROGRAMS) $(TESTPROGRAMS)