Makefile: Add check-format target, operating on all .c sources and crypto+ssl headers
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 25 Jun 2021 06:16:42 +0000 (08:16 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Fri, 30 Sep 2022 20:25:45 +0000 (22:25 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/15913)

Configurations/unix-Makefile.tmpl

index 9af8698dff17f73df9619f86bf52201589026b76..0220adb744c5ea3314a4f81f392eaf96b83e7c02 100644 (file)
@@ -1136,6 +1136,11 @@ lint:
            echo splint -DLINT -posixlib -preproc -D__gnuc_va_list=void \
           -I. -Iinclude -Iapps/include $(CRYPTOHEADERS) $(SSLHEADERS) $(SRCS) )
 
+.PHONY: check-format
+check-format:
+       ( cd $(SRCDIR); $(PERL) util/check-format.pl \
+                       $(SRCS) \$(CRYPTOHEADERS) $(SSLHEADERS) )
+
 generate_apps:
        ( cd $(SRCDIR); $(PERL) VMS/VMSify-conf.pl \
                                < apps/openssl.cnf > apps/openssl-vms.cnf )