aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Makefile.in27
2 files changed, 14 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index a16c7fe2041..b129b6695fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
12012-05-17 Glenn Morris <rgm@gnu.org> 12012-05-17 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (install-etc, mkdir):
4 Make relevant directories in install-etc rather than mkdir.
5
3 * Makefile.in (write_subdir): Create the directory if needed. 6 * Makefile.in (write_subdir): Create the directory if needed.
4 (install-arch-dep, mkdir): No need to make site-lisp directories. 7 (install-arch-dep, mkdir): No need to make site-lisp directories.
5 8
diff --git a/Makefile.in b/Makefile.in
index 5c76cbb500e..0649d2fee45 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -637,15 +637,18 @@ install-arch-indep: mkdir info install-etc
637 done 637 done
638 638
639## Install those items from etc/ that need to end up elsewhere. 639## Install those items from etc/ that need to end up elsewhere.
640install-etc: mkdir 640install-etc:
641 umask 022; ${MKDIR_P} $(DESTDIR)${desktopdir}
641 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \ 642 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \
642 $(DESTDIR)${desktopdir}/emacs.desktop 643 $(DESTDIR)${desktopdir}/emacs.desktop
643 for icon in $(iconsrcdir)/*/*/apps/*.* \ 644 cd ${iconsrcdir} || exit 1; umask 022 ; \
644 $(iconsrcdir)/*/*/mimetypes/*.*; do \ 645 for dir in */*/apps */*/mimetypes; do \
645 if [ -r $${icon} ]; then \ 646 [ -d $${dir} ] || continue ; \
646 iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \ 647 ${MKDIR_P} ${icondir}/$${dir} ; \
647 ${INSTALL_DATA} $${icon} $${iicon} ; \ 648 for icon in $${dir}/*.*; do \
648 fi ; \ 649 [ -r $${icon} ] || continue ; \
650 ${INSTALL_DATA} $${icon} ${icondir}/$${icon} || exit 1 ; \
651 done ; \
649 done 652 done
650 653
651### Install LEIM files. Although they are machine-independent, we 654### Install LEIM files. Although they are machine-independent, we
@@ -664,19 +667,11 @@ install-strip:
664### FIXME it would be good to warn about non-standard permissions of 667### FIXME it would be good to warn about non-standard permissions of
665### pre-existing directories, but that does not seem easy. 668### pre-existing directories, but that does not seem easy.
666mkdir: FRC 669mkdir: FRC
667 icondirs= ; \
668 for dir in $(iconsrcdir)/*/*/apps $(iconsrcdir)/*/*/mimetypes; do \
669 if [ -d $${dir} ]; then \
670 icondirs="$${icondirs} $${dir}" ; \
671 fi ; \
672 done ; \
673 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \
674 umask 022 ; \ 670 umask 022 ; \
675 $(MKDIR_P) $(DESTDIR)${datadir} ${COPYDESTS} \ 671 $(MKDIR_P) $(DESTDIR)${datadir} ${COPYDESTS} \
676 $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ 672 $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \
677 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ 673 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \
678 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \ 674 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'`
679 $(DESTDIR)${desktopdir} $${icondirs}
680 675
681### Delete all the installed files that the `install' target would 676### Delete all the installed files that the `install' target would
682### create (but not the noninstalled files such as `make all' would create). 677### create (but not the noninstalled files such as `make all' would create).