Mercurial > emacs
comparison Makefile.in @ 91327:606f2d163a64
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 09 Jan 2008 01:21:15 +0000 |
parents | 53108e6cea98 107ccd98fa12 |
children | c70e45a7acfd |
comparison
equal
deleted
inserted
replaced
91326:b1a63d7fa09c | 91327:606f2d163a64 |
---|---|
1 # DIST: This is the distribution Makefile for Emacs. configure can | 1 # DIST: This is the distribution Makefile for Emacs. configure can |
2 # DIST: make most of the changes to this file you might want, so try | 2 # DIST: make most of the changes to this file you might want, so try |
3 # DIST: that first. | 3 # DIST: that first. |
4 | 4 |
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
6 # 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 6 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
7 # Free Software Foundation, Inc. | |
7 | 8 |
8 # This file is part of GNU Emacs. | 9 # This file is part of GNU Emacs. |
9 | 10 |
10 # GNU Emacs is free software; you can redistribute it and/or modify | 11 # GNU Emacs is free software; you can redistribute it and/or modify |
11 # it under the terms of the GNU General Public License as published by | 12 # it under the terms of the GNU General Public License as published by |
168 x_default_search_path=@x_default_search_path@ | 169 x_default_search_path=@x_default_search_path@ |
169 | 170 |
170 # Location to install Emacs.app on Mac OS X | 171 # Location to install Emacs.app on Mac OS X |
171 carbon_appdir=@carbon_appdir@ | 172 carbon_appdir=@carbon_appdir@ |
172 | 173 |
174 # Where the etc/emacs.desktop file is to be installed. | |
175 desktopdir=$(datarootdir)/applications | |
176 | |
177 # Where the etc/images/icons/hicolor directory is to be installed. | |
178 icondir=$(datarootdir)/icons | |
179 | |
173 # ==================== Emacs-specific directories ==================== | 180 # ==================== Emacs-specific directories ==================== |
174 | 181 |
175 # These variables hold the values Emacs will actually use. They are | 182 # These variables hold the values Emacs will actually use. They are |
176 # based on the values of the standard Make variables above. | 183 # based on the values of the standard Make variables above. |
177 | 184 |
427 ## installuser: | 434 ## installuser: |
428 ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html | 435 ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html |
429 ## Nuisance because i) it needs to be the user running install, so | 436 ## Nuisance because i) it needs to be the user running install, so |
430 ## configure can't set it; ii) can't (?) use the result of rule | 437 ## configure can't set it; ii) can't (?) use the result of rule |
431 ## commands to set make variables. | 438 ## commands to set make variables. |
432 install-arch-indep: mkdir info | 439 install-arch-indep: mkdir info install-etc |
433 -set ${COPYDESTS} ; \ | 440 -set ${COPYDESTS} ; \ |
434 unset CDPATH; \ | 441 unset CDPATH; \ |
435 for dir in ${COPYDIR} ; do \ | 442 for dir in ${COPYDIR} ; do \ |
436 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ | 443 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ |
437 rm -rf $$1 ; \ | 444 rm -rf $$1 ; \ |
569 (cd $${thisdir}; \ | 576 (cd $${thisdir}; \ |
570 ${INSTALL_DATA} ${mansrcdir}/$${page}.1 $(DESTDIR)${man1dir}/$${page}${manext}; \ | 577 ${INSTALL_DATA} ${mansrcdir}/$${page}.1 $(DESTDIR)${man1dir}/$${page}${manext}; \ |
571 chmod a+r $(DESTDIR)${man1dir}/$${page}${manext}); \ | 578 chmod a+r $(DESTDIR)${man1dir}/$${page}${manext}); \ |
572 done | 579 done |
573 | 580 |
581 ## Install those items from etc/ that need to end up elsewhere. | |
582 install-etc: mkdir | |
583 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \ | |
584 $(DESTDIR)${desktopdir}/emacs.desktop | |
585 for icon in $(srcdir)/etc/images/icons/*/*x*/apps/*.*; do \ | |
586 if [ -r $${icon} ]; then \ | |
587 iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \ | |
588 ${INSTALL_DATA} $${icon} $${iicon} ; \ | |
589 fi ; \ | |
590 done | |
591 | |
574 ### Install LEIM files. Although they are machine-independent, we | 592 ### Install LEIM files. Although they are machine-independent, we |
575 ### have separate target here instead of including it in | 593 ### have separate target here instead of including it in |
576 ### `install-arch-indep'. People who extracted LEIM files after they | 594 ### `install-arch-indep'. People who extracted LEIM files after they |
577 ### insalled Emacs itself can install only LEIM files by this target. | 595 ### insalled Emacs itself can install only LEIM files by this target. |
578 install-leim: leim/Makefile mkdir | 596 install-leim: leim/Makefile mkdir |
589 mkdir: FRC | 607 mkdir: FRC |
590 if [ -d $(DESTDIR)${datadir} ]; then true; else \ | 608 if [ -d $(DESTDIR)${datadir} ]; then true; else \ |
591 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \ | 609 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \ |
592 chmod a+r $(DESTDIR)${datadir};\ | 610 chmod a+r $(DESTDIR)${datadir};\ |
593 fi | 611 fi |
612 icondirs= ; \ | |
613 for dir in $(srcdir)/etc/images/icons/*/*x*/apps; do \ | |
614 if [ -d $${dir} ]; then \ | |
615 icondirs="$${icondirs} $${dir}" ; \ | |
616 fi ; \ | |
617 done ; \ | |
618 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \ | |
594 $(srcdir)/mkinstalldirs ${COPYDESTS} $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ | 619 $(srcdir)/mkinstalldirs ${COPYDESTS} $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ |
595 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ | 620 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ |
596 $(DESTDIR)${datadir}/emacs/site-lisp \ | 621 $(DESTDIR)${datadir}/emacs/site-lisp \ |
597 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \ | 622 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \ |
598 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` | 623 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \ |
624 $(DESTDIR)${desktopdir} $${icondirs} | |
599 | 625 |
600 ### Delete all the installed files that the `install' target would | 626 ### Delete all the installed files that the `install' target would |
601 ### create (but not the noninstalled files such as `make all' would | 627 ### create (but not the noninstalled files such as `make all' would |
602 ### create). | 628 ### create). |
603 ### | 629 ### |