# HG changeset patch # User Jim Blandy # Date 740278219 0 # Node ID 9f31f2f16644fcbe7fca128e2c7e5e0c2d6d6ce9 # Parent 3455cbb3339d08452e515557fe3f16a42e35d185 * Makefile.in (uninstall): Don't remove the lisp and etc directories if they're in the source tree. diff -r 3455cbb3339d -r 9f31f2f16644 Makefile.in --- a/Makefile.in Thu Jun 17 00:39:37 1993 +0000 +++ b/Makefile.in Thu Jun 17 00:50:19 1993 +0000 @@ -388,22 +388,24 @@ ### Delete all the installed files that the `install' target would ### create (but not the noninstalled files such as `make all' would ### create). +### +### Don't delete the lisp and etc directories if they're in the source tree. uninstall: - (cd lib-src; \ - $(MAKE) ${MFLAGS} uninstall - prefix=${prefix} exec_prefix=${exec_prefix} + (cd lib-src; \ + $(MAKE) ${MFLAGS} uninstall \ + prefix=${prefix} exec_prefix=${exec_prefix} \ bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) - rm -f ${lispdir} ${etcdir} - case ${lispdir} in \ - ${datadir}/emacs/${version}/* ) \ - rm -rf ${datadir}/emacs/${version} \ - ;; \ - esac - case ${etcdir} in \ - ${datadir}/emacs/${version}/* ) \ - rm -rf ${datadir}/emacs/${version} \ - ;; \ - esac + for dir in ${lispdir} ${etcdir} ; do \ + case `(cd $${dir} ; pwd)` in \ + `(cd ${srcdir} ; pwd)`* ) ;; \ + * ) rm -rf $${dir} ;; \ + esac ; \ + case $${dir} in \ + ${datadir}/emacs/${version}/* ) \ + rm -rf ${datadir}/emacs/${version} \ + ;; \ + esac ; \ + done (cd ${infodir}; rm -f cl* emacs* forms* info* vip*) (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1) (cd ${bindir}; rm -f emacs-${version} emacs)