comparison Makefile.in @ 3786:9f31f2f16644

* Makefile.in (uninstall): Don't remove the lisp and etc directories if they're in the source tree.
author Jim Blandy <jimb@redhat.com>
date Thu, 17 Jun 1993 00:50:19 +0000
parents 20b847f36ade
children 554e6c290291
comparison
equal deleted inserted replaced
3785:3455cbb3339d 3786:9f31f2f16644
386 chmod 777 ${COPYDESTS} ${lockdir} 386 chmod 777 ${COPYDESTS} ${lockdir}
387 387
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.
391 uninstall: 393 uninstall:
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)
410 412
411 413