summaryrefslogtreecommitdiff
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
commit61220a673ef44add5866c19fa4ef13a8bb147b78 (patch)
tree8520e2e35fd300f71bd89fa1494b3aa46bec2798
parent470a45b2b1ac34557a42ae465f801fb0863eebf3 (diff)
downloademacs-61220a673ef44add5866c19fa4ef13a8bb147b78.tar.gz
(uninstall): When processing lispdir and etcdir,
do nothing unless it exists and is a directory.
-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)