summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2022-09-12 16:30:52 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2022-09-12 16:30:52 -0600
commit49a0a4c21875b8c592b05425897e3867d03d2fa7 (patch)
tree4a4e30677f6698b3cb52745f523ba366692a048f /Makefile.in
parent0bdb867a164bad6ddef3f25a3e37af6b18e7b39e (diff)
downloadsudo-49a0a4c21875b8c592b05425897e3867d03d2fa7.tar.gz
Use $(GREP) and $(EGREP) variables in Makefile.in files.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 5ae970a26..fb21fdf70 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -70,6 +70,8 @@ LIBTOOL_DEPS = @LIBTOOL_DEPS@
SHELL = @SHELL@
+EGREP = @EGREP@
+GREP = @GREP@
SED = @SED@
INSTALL = $(SHELL) $(scriptdir)/install-sh -c
@@ -117,7 +119,7 @@ check check-verbose check-fuzzer fuzz pre-install: config.status
done
uncrustify.files: Makefile
- grep '\.[ch]$$' $(top_srcdir)/MANIFEST | grep -E -v '(/zlib/|/(arc4random|arc4random_uniform|chacha_private|charclass|fnmatch|getaddrinfo|getcwd|getdate|getentropy|getopt|getopt_long|glob|gram|inet_ntop|inet_pton|log_server.pb-c|mktemp|pw_dup|reallocarray|mktemp_test|protobuf-c|snprintf|stdbool|strlcat|strlcpy|sudo_queue|toke)\.[ch]$$)' > uncrustify.files
+ $(GREP) '\.[ch]$$' $(top_srcdir)/MANIFEST | $(EGREP) -v '(/zlib/|/(arc4random|arc4random_uniform|chacha_private|charclass|fnmatch|getaddrinfo|getcwd|getdate|getentropy|getopt|getopt_long|glob|gram|inet_ntop|inet_pton|log_server.pb-c|mktemp|pw_dup|reallocarray|mktemp_test|protobuf-c|snprintf|stdbool|strlcat|strlcpy|sudo_queue|toke)\.[ch]$$)' > uncrustify.files
reformat: uncrustify.files
( cd $(top_srcdir) && uncrustify -c etc/uncrustify.cfg --replace --no-backup -F $(top_builddir)/uncrustify.files )
@@ -126,7 +128,7 @@ check-format: uncrustify.files
( cd $(top_srcdir) && uncrustify -c etc/uncrustify.cfg --check -F $(top_builddir)/uncrustify.files )
spell:
- ( cd $(top_srcdir) && codespell -I etc/codespell.ignore -x etc/codespell.exclude `grep -E -v -f etc/codespell.skip MANIFEST` )
+ ( cd $(top_srcdir) && codespell -I etc/codespell.ignore -x etc/codespell.exclude `$(EGREP) -v -f etc/codespell.skip MANIFEST` )
cppcheck: config.status
rval=0; \