summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-08 19:51:59 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-08 19:51:59 +0000
commit726d0798d625586f0817d06733cc03238640114a (patch)
tree498b6bb59cfcb6fe009e8cd9c6fc35a1aa54d15e /Makefile.in
parent6b1abbd18635f4a8a90331493e0ea4e3eef53d70 (diff)
downloademacs-726d0798d625586f0817d06733cc03238640114a.tar.gz
(uninstall): When processing lispdir and etcdir,
do nothing unless it exists and is a directory.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index 6804224dfce..77437d00c20 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -346,15 +346,17 @@ uninstall:
prefix=${prefix} exec_prefix=${exec_prefix} \
bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
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 ; \
+ if [ -d $${dir} ]; then \
+ case `(cd $${dir} ; pwd)` in \
+ `(cd ${srcdir} ; pwd)`* ) ;; \
+ * ) rm -rf $${dir} ;; \
+ esac ; \
+ case $${dir} in \
+ ${datadir}/emacs/${version}/* ) \
+ rm -rf ${datadir}/emacs/${version} \
+ ;; \
+ esac ; \
+ fi ; \
done
(cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
(cd ${mandir}; rm -f emacs.1 etags.1 ctags.1)