Mercurial > emacs
comparison Makefile.in @ 49549:99be3a1e2589
Cygwin support patch.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 31 Jan 2003 15:24:20 +0000 |
parents | 6dc041df7e02 |
children | 23a1cea22d13 |
comparison
equal
deleted
inserted
replaced
49548:8b1c605f8c9b | 49549:99be3a1e2589 |
---|---|
213 | 213 |
214 # Program name transformation. | 214 # Program name transformation. |
215 TRANSFORM = @program_transform_name@ | 215 TRANSFORM = @program_transform_name@ |
216 | 216 |
217 # What emacs should be called when installed. | 217 # What emacs should be called when installed. |
218 EMACS = `echo emacs | sed '$(TRANSFORM)'` | 218 EMACS = `echo emacs@EXEEXT@ | sed '$(TRANSFORM)'` |
219 EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'` | 219 EMACSFULL = `echo emacs-${version}@EXEEXT@ | sed '$(TRANSFORM)'` |
220 | 220 |
221 # Subdirectories to make recursively. `lisp' is not included | 221 # Subdirectories to make recursively. `lisp' is not included |
222 # because the compiled lisp files are part of the distribution. | 222 # because the compiled lisp files are part of the distribution. |
223 # leim is not included because it needs special handling. | 223 # leim is not included because it needs special handling. |
224 SUBDIR = lib-src src | 224 SUBDIR = lib-src src |
356 (cd lib-src; \ | 356 (cd lib-src; \ |
357 $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 357 $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
358 exec_prefix=${exec_prefix} bindir=${bindir} \ | 358 exec_prefix=${exec_prefix} bindir=${bindir} \ |
359 libexecdir=${libexecdir} archlibdir=${archlibdir} \ | 359 libexecdir=${libexecdir} archlibdir=${archlibdir} \ |
360 INSTALL_STRIP=${INSTALL_STRIP}) | 360 INSTALL_STRIP=${INSTALL_STRIP}) |
361 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/$(EMACSFULL) | 361 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs@EXEEXT@ ${bindir}/$(EMACSFULL) |
362 -chmod 1755 ${bindir}/$(EMACSFULL) | 362 -chmod 1755 ${bindir}/$(EMACSFULL) |
363 rm -f ${bindir}/$(EMACS) | 363 rm -f ${bindir}/$(EMACS) |
364 -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS) | 364 -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS) |
365 -unset CDPATH; \ | 365 -unset CDPATH; \ |
366 for f in `cd lib-src && echo fns-*.el`; do \ | 366 for f in `cd lib-src && echo fns-*.el`; do \ |
404 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ | 404 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ |
405 && (echo "Copying $${dir} to $${dest}..." ; \ | 405 && (echo "Copying $${dir} to $${dest}..." ; \ |
406 (cd $${dir}; tar -chf - . ) \ | 406 (cd $${dir}; tar -chf - . ) \ |
407 | (cd $${dest}; umask 022; \ | 407 | (cd $${dest}; umask 022; \ |
408 tar -xvf - && cat > /dev/null) || exit 1; \ | 408 tar -xvf - && cat > /dev/null) || exit 1; \ |
409 find $${dest} -exec chown $$LOGNAME {} ';' ;\ | 409 find $${dest} -exec chown $${LOGNAME:-$$USERNAME} {} ';' ;\ |
410 for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \ | 410 for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \ |
411 chmod a+rx $${subdir} ; \ | 411 chmod a+rx $${subdir} ; \ |
412 rm -rf $${subdir}/RCS ; \ | 412 rm -rf $${subdir}/RCS ; \ |
413 rm -rf $${subdir}/CVS ; \ | 413 rm -rf $${subdir}/CVS ; \ |
414 rm -f $${subdir}/.cvsignore ; \ | 414 rm -f $${subdir}/.cvsignore ; \ |
443 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ | 443 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ |
444 then \ | 444 then \ |
445 echo "Copying etc/DOC-* to ${docdir} ..." ; \ | 445 echo "Copying etc/DOC-* to ${docdir} ..." ; \ |
446 (cd ./etc; tar -chf - DOC*) \ | 446 (cd ./etc; tar -chf - DOC*) \ |
447 |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ | 447 |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ |
448 (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; \ | 448 (cd $(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \ |
449 if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \ | 449 if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \ |
450 else true; fi | 450 else true; fi |
451 -unset CDPATH; \ | 451 -unset CDPATH; \ |
452 if [ -r ./lisp ] \ | 452 if [ -r ./lisp ] \ |
453 && [ -r ./lisp/simple.el ] \ | 453 && [ -r ./lisp/simple.el ] \ |
455 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \ | 455 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \ |
456 then \ | 456 then \ |
457 echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \ | 457 echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \ |
458 (cd lisp; tar -chf - *.el *.elc) \ | 458 (cd lisp; tar -chf - *.el *.elc) \ |
459 |(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ | 459 |(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ |
460 (cd ${lispdir}; find . -exec chown $${LOGNAME} {} ';') ; \ | 460 (cd ${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ; \ |
461 else true; fi | 461 else true; fi |
462 -unset CDPATH; \ | 462 -unset CDPATH; \ |
463 thisdir=`/bin/pwd`; \ | 463 thisdir=`/bin/pwd`; \ |
464 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ | 464 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ |
465 then \ | 465 then \ |
733 fi | 733 fi |
734 | 734 |
735 bootstrap: bootstrap-clean-before info FRC | 735 bootstrap: bootstrap-clean-before info FRC |
736 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) | 736 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) |
737 (cd src; $(MAKE) $(MFLAGS) bootstrap) | 737 (cd src; $(MAKE) $(MFLAGS) bootstrap) |
738 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs) | 738 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs@EXEEXT@) |
739 (cd src; $(MAKE) $(MFLAGS) mostlyclean) | 739 (cd src; $(MAKE) $(MFLAGS) mostlyclean) |
740 $(MAKE) $(MFLAGS) all | 740 $(MAKE) $(MFLAGS) all |
741 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) | 741 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) |
742 | 742 |
743 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. | 743 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. |