aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-06-17 00:50:19 +0000
committerJim Blandy1993-06-17 00:50:19 +0000
commit44257b1a3dcb1400fcecfca6fbd022a31bd925ee (patch)
tree4387f22ab73140af2942c75eb985dd0f2b2047d3
parent75d8f6686c49706c474ac485c1786cea73a1b7c7 (diff)
downloademacs-44257b1a3dcb1400fcecfca6fbd022a31bd925ee.tar.gz
emacs-44257b1a3dcb1400fcecfca6fbd022a31bd925ee.zip
* Makefile.in (uninstall): Don't remove the lisp and etc
directories if they're in the source tree.
-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
388### Delete all the installed files that the `install' target would 388### Delete all the installed files that the `install' target would
389### create (but not the noninstalled files such as `make all' would 389### create (but not the noninstalled files such as `make all' would
390### create). 390### create).
391###
392### Don't delete the lisp and etc directories if they're in the source tree.
391uninstall: 393uninstall:
392 (cd lib-src; \ 394 (cd lib-src; \
393 $(MAKE) ${MFLAGS} uninstall 395 $(MAKE) ${MFLAGS} uninstall \
394 prefix=${prefix} exec_prefix=${exec_prefix} 396 prefix=${prefix} exec_prefix=${exec_prefix} \
395 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) 397 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
396 rm -f ${lispdir} ${etcdir} 398 for dir in ${lispdir} ${etcdir} ; do \
397 case ${lispdir} in \ 399 case `(cd $${dir} ; pwd)` in \
398 ${datadir}/emacs/${version}/* ) \ 400 `(cd ${srcdir} ; pwd)`* ) ;; \
399 rm -rf ${datadir}/emacs/${version} \ 401 * ) rm -rf $${dir} ;; \
400 ;; \ 402 esac ; \
401 esac 403 case $${dir} in \
402 case ${etcdir} in \ 404 ${datadir}/emacs/${version}/* ) \
403 ${datadir}/emacs/${version}/* ) \ 405 rm -rf ${datadir}/emacs/${version} \
404 rm -rf ${datadir}/emacs/${version} \ 406 ;; \
405 ;; \ 407 esac ; \
406 esac 408 done
407 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*) 409 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
408 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1) 410 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1)
409 (cd ${bindir}; rm -f emacs-${version} emacs) 411 (cd ${bindir}; rm -f emacs-${version} emacs)