Subject: Re: bug#57771: 28.2; ’uninstall’ make target does not remove .eln native compiled files
From: Eli Zaretskii <[email-masked]>
To: Alfredo Finelli <[email-masked]>
Cc: [email-masked]
Date: Wed, 14 Sep 2022 15:17:44 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Alfredo Finelli <[email-masked]>
> Cc: [email-masked]
> Date: Wed, 14 Sep 2022 09:34:33 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Does the patch below give good results?
> >
> > diff --git a/Makefile.in b/Makefile.in
> > index d288bac..3f811ea 100644
> > --- a/Makefile.in
> > +++ b/Makefile.in
> > @@ -844,7 +844,7 @@ uninstall:
> >  	rm -f "$(DESTDIR)$(includedir)/emacs-module.h"
> >  	$(MAKE) -C lib-src uninstall
> >  	-unset CDPATH; \
> > -	for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${etcdir}" ; do 	\
> > +	for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${etcdir}" "$(ELN_DESTDIR)" ; do 	\
> >  	  if [ -d "$${dir}" ]; then			\
> >  	    case `cd "$${dir}" ; /bin/pwd` in		\
> >  	      "`cd ${srcdir} ; /bin/pwd`"* ) ;;		\
> 
> Thank you for your prompt reply!  After testing it I can confirm that the
> patch solves the problem.

Thanks, installed on the emacs-28 branch, and closing the bug report.