comparison Makefile.in @ 25953:d79615c0b727

(uninstall, install-arch-indep, install-arch-dep): Unset CDPATH to prevent cd from generating output.
author Richard M. Stallman <rms@gnu.org>
date Sat, 09 Oct 1999 19:13:48 +0000
parents c527ea2cdc70
children 29159179b7fe
comparison
equal deleted inserted replaced
25952:b7a1e1e9e668 25953:d79615c0b727
303 INSTALL_STRIP=${INSTALL_STRIP}) 303 INSTALL_STRIP=${INSTALL_STRIP})
304 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version} 304 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version}
305 -chmod 1755 ${bindir}/emacs-${version} 305 -chmod 1755 ${bindir}/emacs-${version}
306 rm -f ${bindir}/$(EMACS) 306 rm -f ${bindir}/$(EMACS)
307 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) 307 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
308 unset CDPATH; \
308 for f in `cd lib-src && echo fns-*.el`; do \ 309 for f in `cd lib-src && echo fns-*.el`; do \
309 ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \ 310 ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \
310 done 311 done
311 312
312 ### Install the files that are machine-independent. 313 ### Install the files that are machine-independent.
316 317
317 ## Note that we copy DOC* and then delete DOC 318 ## Note that we copy DOC* and then delete DOC
318 ## as a workaround for a bug in tar on Ultrix 4.2. 319 ## as a workaround for a bug in tar on Ultrix 4.2.
319 install-arch-indep: mkdir 320 install-arch-indep: mkdir
320 -set ${COPYDESTS} ; \ 321 -set ${COPYDESTS} ; \
322 unset CDPATH; \
321 for dir in ${COPYDIR} ; do \ 323 for dir in ${COPYDIR} ; do \
322 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ 324 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
323 rm -rf $$1 ; \ 325 rm -rf $$1 ; \
324 fi ; \ 326 fi ; \
325 shift ; \ 327 shift ; \
326 done 328 done
327 -set ${COPYDESTS} ; \ 329 -set ${COPYDESTS} ; \
328 mkdir ${COPYDESTS} ; \ 330 mkdir ${COPYDESTS} ; \
329 chmod ugo+rx ${COPYDESTS} ; \ 331 chmod ugo+rx ${COPYDESTS} ; \
332 unset CDPATH; \
330 for dir in ${COPYDIR} ; do \ 333 for dir in ${COPYDIR} ; do \
331 dest=$$1 ; shift ; \ 334 dest=$$1 ; shift ; \
332 [ -d $${dir} ] \ 335 [ -d $${dir} ] \
333 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ 336 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
334 && (echo "Copying $${dir} to $${dest}..." ; \ 337 && (echo "Copying $${dir} to $${dest}..." ; \
363 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \ 366 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
364 echo " (normal-top-level-add-subdirs-to-load-path))") \ 367 echo " (normal-top-level-add-subdirs-to-load-path))") \
365 > ${datadir}/emacs/site-lisp/subdirs.el; \ 368 > ${datadir}/emacs/site-lisp/subdirs.el; \
366 fi 369 fi
367 -chmod a+r ${datadir}/emacs/site-lisp/subdirs.el 370 -chmod a+r ${datadir}/emacs/site-lisp/subdirs.el
371 unset CDPATH; \
368 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ 372 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
369 then \ 373 then \
370 echo "Copying etc/DOC-* to ${docdir} ..." ; \ 374 echo "Copying etc/DOC-* to ${docdir} ..." ; \
371 (cd ./etc; tar -cf - DOC*) \ 375 (cd ./etc; tar -cf - DOC*) \
372 |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null); \ 376 |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null); \
373 (cd $(docdir); chmod a+r DOC*; rm DOC); \ 377 (cd $(docdir); chmod a+r DOC*; rm DOC); \
374 else true; fi 378 else true; fi
379 unset CDPATH; \
375 if [ -r ./lisp ] \ 380 if [ -r ./lisp ] \
376 && [ -r ./lisp/simple.el ] \ 381 && [ -r ./lisp/simple.el ] \
377 && [ x`(cd ./lisp; /bin/pwd)` != x`(cd ${lispdir}; /bin/pwd)` ] \ 382 && [ x`(cd ./lisp; /bin/pwd)` != x`(cd ${lispdir}; /bin/pwd)` ] \
378 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \ 383 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \
379 then \ 384 then \
380 echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \ 385 echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
381 (cd lisp; tar -cf - *.el *.elc) \ 386 (cd lisp; tar -cf - *.el *.elc) \
382 |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null); \ 387 |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null); \
383 else true; fi 388 else true; fi
389 unset CDPATH; \
384 thisdir=`/bin/pwd`; \ 390 thisdir=`/bin/pwd`; \
385 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ 391 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
386 then \ 392 then \
387 (cd ${infodir}; \ 393 (cd ${infodir}; \
388 if [ -f dir ]; then true; \ 394 if [ -f dir ]; then true; \
396 (cd $${thisdir}; \ 402 (cd $${thisdir}; \
397 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \ 403 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \
398 chmod a+r ${infodir}/$$f); \ 404 chmod a+r ${infodir}/$$f); \
399 done); \ 405 done); \
400 else true; fi 406 else true; fi
401 -thisdir=`/bin/pwd`; \ 407 -unset CDPATH; \
408 thisdir=`/bin/pwd`; \
402 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ 409 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
403 then \ 410 then \
404 for f in ada-mode ccmode cl dired-x ediff emacs forms gnus info message mh-e reftex sc vip viper widget; do \ 411 for f in ada-mode ccmode cl dired-x ediff emacs forms gnus info message mh-e reftex sc vip viper widget; do \
405 (cd $${thisdir}; \ 412 (cd $${thisdir}; \
406 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/$$f); \ 413 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/$$f); \
449 uninstall: 456 uninstall:
450 (cd lib-src; \ 457 (cd lib-src; \
451 $(MAKE) $(MFLAGS) uninstall \ 458 $(MAKE) $(MFLAGS) uninstall \
452 prefix=${prefix} exec_prefix=${exec_prefix} \ 459 prefix=${prefix} exec_prefix=${exec_prefix} \
453 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}) 460 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir})
461 unset CDPATH; \
454 for dir in ${lispdir} ${etcdir} ; do \ 462 for dir in ${lispdir} ${etcdir} ; do \
455 if [ -d $${dir} ]; then \ 463 if [ -d $${dir} ]; then \
456 case `(cd $${dir} ; /bin/pwd)` in \ 464 case `(cd $${dir} ; /bin/pwd)` in \
457 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \ 465 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \
458 * ) rm -rf $${dir} ;; \ 466 * ) rm -rf $${dir} ;; \