summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
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)