diff --git a/Makefile.am b/Makefile.am index ee8a3f24fa..a7738734f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,7 +69,7 @@ dist-hook: find $(distdir) -type f \( -name config.log -o -name config.status \) -exec rm -f {} \; find $(distdir) -type d \( -name .deps -o -name autom4te.cache \) -prune -exec rm -rf {} \; missing=0 ; \ - for file in `git ls-files | egrep -v '^\.git(hub/|ignore)'` ; do \ + for file in `git ls-files | $(EGREP) -v '^\.git(hub/|ignore)'` ; do \ if test ! -e $(distdir)/$$file ; then \ missing=1 ; \ echo "MISSING FROM DIST: $$file" ; \