aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in12
2 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a4cef305560..fd6ce3dff0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12014-08-28 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (appdatadir): New variable.
4 (install-etc, uninstall, clean): Handle etc/emacs.appdata.xml.
5
12014-08-27 Paul Eggert <eggert@cs.ucla.edu> 62014-08-27 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Improve robustness of new string-collation code (Bug#18051). 8 Improve robustness of new string-collation code (Bug#18051).
diff --git a/Makefile.in b/Makefile.in
index a6080e5ce78..dee3f7167a1 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -179,6 +179,9 @@ x_default_search_path=@x_default_search_path@
179# Where the etc/emacs.desktop file is to be installed. 179# Where the etc/emacs.desktop file is to be installed.
180desktopdir=$(datarootdir)/applications 180desktopdir=$(datarootdir)/applications
181 181
182# Where the etc/emacs.appdata.xml file is to be installed.
183appdatadir=$(datarootdir)/appdata
184
182# Where the etc/images/icons/hicolor directory is to be installed. 185# Where the etc/images/icons/hicolor directory is to be installed.
183icondir=$(datarootdir)/icons 186icondir=$(datarootdir)/icons
184 187
@@ -687,6 +690,12 @@ install-etc:
687 ${srcdir}/etc/emacs.desktop > $${tmp}; \ 690 ${srcdir}/etc/emacs.desktop > $${tmp}; \
688 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"; \ 691 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"; \
689 rm -f $${tmp} 692 rm -f $${tmp}
693 umask 022; ${MKDIR_P} "$(DESTDIR)${appdatadir}"
694 tmp=etc/emacs.tmpappdata; rm -f $${tmp}; \
695 sed -e "s/emacs\.desktop/${EMACS_NAME}.desktop/" \
696 ${srcdir}/etc/emacs.appdata.xml > $${tmp}; \
697 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${appdatadir}/${EMACS_NAME}.appdata.xml"; \
698 rm -f $${tmp}
690 thisdir=`/bin/pwd`; \ 699 thisdir=`/bin/pwd`; \
691 cd ${iconsrcdir} || exit 1; umask 022 ; \ 700 cd ${iconsrcdir} || exit 1; umask 022 ; \
692 for dir in */*/apps */*/mimetypes; do \ 701 for dir in */*/apps */*/mimetypes; do \
@@ -751,6 +760,7 @@ uninstall: uninstall-$(NTDIR) uninstall-doc
751 hicolor/scalable/mimetypes/`echo emacs-document | sed '$(TRANSFORM)'`.svg; \ 760 hicolor/scalable/mimetypes/`echo emacs-document | sed '$(TRANSFORM)'`.svg; \
752 fi) 761 fi)
753 -rm -f "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop" 762 -rm -f "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"
763 -rm -f "$(DESTDIR)${appdatadir}/${EMACS_NAME}.appdata.xml"
754 for file in snake-scores tetris-scores; do \ 764 for file in snake-scores tetris-scores; do \
755 file="$(DESTDIR)${gamedir}/$${file}"; \ 765 file="$(DESTDIR)${gamedir}/$${file}"; \
756 [ -s "$${file}" ] || rm -f "$$file"; \ 766 [ -s "$${file}" ] || rm -f "$$file"; \
@@ -806,7 +816,7 @@ clean: $(clean_dirs:=_clean)
806 for dir in test/automated; do \ 816 for dir in test/automated; do \
807 [ ! -d $$dir ] || $(MAKE) -C $$dir clean; \ 817 [ ! -d $$dir ] || $(MAKE) -C $$dir clean; \
808 done 818 done
809 -rm -f etc/emacs.tmpdesktop 819 -rm -f etc/emacs.tmpdesktop etc/emacs.tmpappdata
810 820
811### `bootclean' 821### `bootclean'
812### Delete all files that need to be remade for a clean bootstrap. 822### Delete all files that need to be remade for a clean bootstrap.