Mercurial > emacs
comparison Makefile.in @ 3310:2807618b3f72
* Makefile.in (mkdir, clean, mostlyclean, do-install): Use `(cd
foo && pwd)` instead of `(cd foo ; pwd)` to get the canonical name
of a directory; cd might fail, and have pwd print out the current
directory.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 30 May 1993 19:38:49 +0000 |
parents | 6376735acde8 |
children | deeb7a37ea11 |
comparison
equal
deleted
inserted
replaced
3309:f00054d40753 | 3310:2807618b3f72 |
---|---|
323 $(MAKE) install ${MFLAGS} prefix=${prefix} \ | 323 $(MAKE) install ${MFLAGS} prefix=${prefix} \ |
324 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ | 324 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ |
325 archlibdir=${archlibdir}) | 325 archlibdir=${archlibdir}) |
326 -set ${COPYDESTS} ; \ | 326 -set ${COPYDESTS} ; \ |
327 for dir in ${COPYDIR} ; do \ | 327 for dir in ${COPYDIR} ; do \ |
328 if [ `(cd $$1 ; pwd)` != `(cd $${dir} ; pwd)` ] ; then \ | 328 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \ |
329 rm -rf $$1 ; \ | 329 rm -rf $$1 ; \ |
330 fi ; \ | 330 fi ; \ |
331 shift ; \ | 331 shift ; \ |
332 done | 332 done |
333 -set ${COPYDESTS} ; \ | 333 -set ${COPYDESTS} ; \ |
334 mkdir ${COPYDESTS} ; \ | 334 mkdir ${COPYDESTS} ; \ |
335 for dir in ${COPYDIR} ; do \ | 335 for dir in ${COPYDIR} ; do \ |
336 dest=$$1 ; shift ; \ | 336 dest=$$1 ; shift ; \ |
337 [ -d $${dir} ] \ | 337 [ -d $${dir} ] \ |
338 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ | 338 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ |
339 && (echo "Copying $${dir}..." ; \ | 339 && (echo "Copying $${dir}..." ; \ |
340 (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ | 340 (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ |
341 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | 341 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
342 rm -rf $${subdir}/RCS ; \ | 342 rm -rf $${subdir}/RCS ; \ |
343 rm -rf $${subdir}/CVS ; \ | 343 rm -rf $${subdir}/CVS ; \ |
344 rm -f $${subdir}/\#* ; \ | 344 rm -f $${subdir}/\#* ; \ |
345 rm -f $${subdir}/*~ ; \ | 345 rm -f $${subdir}/*~ ; \ |
346 done) ; \ | 346 done) ; \ |
347 done | 347 done |
348 -[ `(cd ${srcdir}/info; /bin/pwd)` != `(cd ${infodir}; /bin/pwd)` ] \ | 348 -[ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ] \ |
349 && (cd ${srcdir}/info ; \ | 349 && (cd ${srcdir}/info ; \ |
350 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ | 350 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ |
351 ${INSTALL_DATA} dir ${infodir}/dir ; \ | 351 ${INSTALL_DATA} dir ${infodir}/dir ; \ |
352 fi ; \ | 352 fi ; \ |
353 for f in cl* emacs* forms* info* vip* ; do \ | 353 for f in cl* emacs* forms* info* vip* ; do \ |
392 ### | 392 ### |
393 clean mostlyclean: | 393 clean mostlyclean: |
394 cd src; $(MAKE) clean | 394 cd src; $(MAKE) clean |
395 cd lib-src; $(MAKE) clean | 395 cd lib-src; $(MAKE) clean |
396 cd oldXMenu; $(MAKE) clean | 396 cd oldXMenu; $(MAKE) clean |
397 if [ `(cd ${etcdir} ; /bin/pwd)` != `(cd etc; /bin/pwd)` ] ; then \ | 397 if [ `(cd ${etcdir} && /bin/pwd)` != `(cd etc && /bin/pwd)` ] ; then \ |
398 cd etc; $(MAKE) clean; \ | 398 cd etc; $(MAKE) clean; \ |
399 else true; \ | 399 else true; \ |
400 fi | 400 fi |
401 | 401 |
402 ### `distclean' | 402 ### `distclean' |