Subject: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist

From: Tetsurou Okazaki <[email-masked]>
Date: Mon, 15 Mar 2010 13:40:12 +0900

Running `make uninstall' deletes some script files under lib-src
when a corresponding $(DESTDIR)${archlibdir} is not exist, since
the uninstall rule does not check the status of `cd $(DESTDIR)${archlibdir}'.

To reproduce this condition:

  extract or check out the emacs source tree at the machine Emacs is not installed
  or
  update the source tree until `emacs-version' is updated to the one not installed yet

  then

  % ./configure
  % make uninstall

Please apply the attached patch to fix this.
It also avoids `make uninstall' stops when `cd $(DESTDIR)${archlibdir}' fails.