From 71beab84e6e2c5bda417b309a16c3ec4eee38859 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 25 Jun 2021 08:16:42 +0200 Subject: [PATCH] Makefile: Add check-format target, operating on all .c sources and crypto+ssl headers Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/15913) --- Configurations/unix-Makefile.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 9af8698dff..0220adb744 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -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 ) -- 2.39.2