comparison Makefile.in @ 92420:12e9e4bb410b

(iconsrcdir): New variable. (install-etc, mkdir): Use $iconsrcdir. Handle the `scalable' icon directory.
author Glenn Morris <rgm@gnu.org>
date Mon, 03 Mar 2008 02:26:30 +0000
parents dd76d29353ca
children c47de1ae39b5
comparison
equal deleted inserted replaced
92419:7e8a8ae7576f 92420:12e9e4bb410b
174 # Where the etc/emacs.desktop file is to be installed. 174 # Where the etc/emacs.desktop file is to be installed.
175 desktopdir=$(datarootdir)/applications 175 desktopdir=$(datarootdir)/applications
176 176
177 # Where the etc/images/icons/hicolor directory is to be installed. 177 # Where the etc/images/icons/hicolor directory is to be installed.
178 icondir=$(datarootdir)/icons 178 icondir=$(datarootdir)/icons
179
180 # The source directory for the icon files.
181 iconsrcdir=$(srcdir)/etc/images/icons
179 182
180 # ==================== Emacs-specific directories ==================== 183 # ==================== Emacs-specific directories ====================
181 184
182 # These variables hold the values Emacs will actually use. They are 185 # These variables hold the values Emacs will actually use. They are
183 # based on the values of the standard Make variables above. 186 # based on the values of the standard Make variables above.
573 576
574 ## Install those items from etc/ that need to end up elsewhere. 577 ## Install those items from etc/ that need to end up elsewhere.
575 install-etc: mkdir 578 install-etc: mkdir
576 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \ 579 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \
577 $(DESTDIR)${desktopdir}/emacs.desktop 580 $(DESTDIR)${desktopdir}/emacs.desktop
578 for icon in $(srcdir)/etc/images/icons/*/*x*/apps/*.*; do \ 581 for icon in $(iconsrcdir)/*/*x*/apps/*.* \
582 $(iconsrcdir)/*/scalable/apps/*.*; do \
579 if [ -r $${icon} ]; then \ 583 if [ -r $${icon} ]; then \
580 iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \ 584 iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \
581 ${INSTALL_DATA} $${icon} $${iicon} ; \ 585 ${INSTALL_DATA} $${icon} $${iicon} ; \
582 fi ; \ 586 fi ; \
583 done 587 done
601 if [ -d $(DESTDIR)${datadir} ]; then true; else \ 605 if [ -d $(DESTDIR)${datadir} ]; then true; else \
602 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \ 606 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir}; \
603 chmod a+r $(DESTDIR)${datadir};\ 607 chmod a+r $(DESTDIR)${datadir};\
604 fi 608 fi
605 icondirs= ; \ 609 icondirs= ; \
606 for dir in $(srcdir)/etc/images/icons/*/*x*/apps; do \ 610 for dir in $(iconsrcdir)/*/*x*/apps $(iconsrcdir)/*/scalable/apps; do \
607 if [ -d $${dir} ]; then \ 611 if [ -d $${dir} ]; then \
608 icondirs="$${icondirs} $${dir}" ; \ 612 icondirs="$${icondirs} $${dir}" ; \
609 fi ; \ 613 fi ; \
610 done ; \ 614 done ; \
611 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \ 615 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \