summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-17 00:50:19 +0000
committerJim Blandy <jimb@redhat.com>1993-06-17 00:50:19 +0000
commit44257b1a3dcb1400fcecfca6fbd022a31bd925ee (patch)
tree4387f22ab73140af2942c75eb985dd0f2b2047d3 /Makefile.in
parent75d8f6686c49706c474ac485c1786cea73a1b7c7 (diff)
downloademacs-44257b1a3dcb1400fcecfca6fbd022a31bd925ee.tar.gz
* Makefile.in (uninstall): Don't remove the lisp and etc
directories if they're in the source tree.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in30
1 files changed, 16 insertions, 14 deletions
diff --git a/Makefile.in b/Makefile.in
index 0dcc2fe04d8..101fd8d75d2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -388,22 +388,24 @@ mkdir: FRC.mkdir
### 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)