aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-01-05 04:15:11 +0000
committerGlenn Morris2008-01-05 04:15:11 +0000
commitb26cd843e7bd2a82fea654dc81b6282f36911ac1 (patch)
tree4a09aa62526e8c96ca57b8db09947a6d940a14e8
parent7788013058c53af9505f8e19ca650ca6b9cb1183 (diff)
downloademacs-b26cd843e7bd2a82fea654dc81b6282f36911ac1.tar.gz
emacs-b26cd843e7bd2a82fea654dc81b6282f36911ac1.zip
(desktopdir, icondir): New variables.
(install-arch-indep): Also depend on `install-etc'. (install-etc): New target. (mkdir): Also create the `applications' and `icons' directories.
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.in29
2 files changed, 34 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 52aca9dcf2c..15944b15462 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12008-01-05 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (desktopdir, icondir): New variables.
4 (install-arch-indep): Also depend on `install-etc'.
5 (install-etc): New target.
6 (mkdir): Also create the `applications' and `icons' directories.
7
12008-01-04 Glenn Morris <rgm@gnu.org> 82008-01-04 Glenn Morris <rgm@gnu.org>
2 9
3 * make-dist: Update for new etc/images/icons/hicolor directory. 10 * make-dist: Update for new etc/images/icons/hicolor directory.
diff --git a/Makefile.in b/Makefile.in
index b3de304491a..32dfc0fa2a0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -170,6 +170,12 @@ x_default_search_path=@x_default_search_path@
170# Location to install Emacs.app on Mac OS X 170# Location to install Emacs.app on Mac OS X
171carbon_appdir=@carbon_appdir@ 171carbon_appdir=@carbon_appdir@
172 172
173# Where the etc/emacs.desktop file is to be installed.
174desktopdir=$(datarootdir)/applications
175
176# Where the etc/images/icons/hicolor directory is to be installed.
177icondir=$(datarootdir)/icons
178
173# ==================== Emacs-specific directories ==================== 179# ==================== Emacs-specific directories ====================
174 180
175# These variables hold the values Emacs will actually use. They are 181# These variables hold the values Emacs will actually use. They are
@@ -429,7 +435,7 @@ install-arch-dep: mkdir
429## Nuisance because i) it needs to be the user running install, so 435## 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 436## configure can't set it; ii) can't (?) use the result of rule
431## commands to set make variables. 437## commands to set make variables.
432install-arch-indep: mkdir info 438install-arch-indep: mkdir info install-etc
433 -set ${COPYDESTS} ; \ 439 -set ${COPYDESTS} ; \
434 unset CDPATH; \ 440 unset CDPATH; \
435 for dir in ${COPYDIR} ; do \ 441 for dir in ${COPYDIR} ; do \
@@ -571,6 +577,17 @@ install-arch-indep: mkdir info
571 chmod a+r $(DESTDIR)${man1dir}/$${page}${manext}); \ 577 chmod a+r $(DESTDIR)${man1dir}/$${page}${manext}); \
572 done 578 done
573 579
580## Install those items from etc/ that need to end up elsewhere.
581install-etc: mkdir
582 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \
583 $(DESTDIR)${desktopdir}/emacs.desktop
584 for icon in $(srcdir)/etc/images/icons/*/*x*/apps/*.*; do \
585 if [ -r $${icon} ]; then \
586 iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \
587 ${INSTALL_DATA} $${icon} $${iicon} ; \
588 fi ; \
589 done
590
574### Install LEIM files. Although they are machine-independent, we 591### Install LEIM files. Although they are machine-independent, we
575### have separate target here instead of including it in 592### have separate target here instead of including it in
576### `install-arch-indep'. People who extracted LEIM files after they 593### `install-arch-indep'. People who extracted LEIM files after they
@@ -591,11 +608,19 @@ mkdir: FRC
591 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \ 608 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \
592 chmod a+r $(DESTDIR)${datadir};\ 609 chmod a+r $(DESTDIR)${datadir};\
593 fi 610 fi
611 icondirs= ; \
612 for dir in $(srcdir)/etc/images/icons/*/*x*/apps; do \
613 if [ -d $${dir} ]; then \
614 icondirs="$${icondirs} $${dir}" ; \
615 fi ; \
616 done ; \
617 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \
594 $(srcdir)/mkinstalldirs ${COPYDESTS} $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ 618 $(srcdir)/mkinstalldirs ${COPYDESTS} $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \
595 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ 619 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \
596 $(DESTDIR)${datadir}/emacs/site-lisp \ 620 $(DESTDIR)${datadir}/emacs/site-lisp \
597 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \ 621 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \
598 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` 622 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \
623 $(DESTDIR)${desktopdir} $${icondirs}
599 624
600### Delete all the installed files that the `install' target would 625### Delete all the installed files that the `install' target would
601### create (but not the noninstalled files such as `make all' would 626### create (but not the noninstalled files such as `make all' would