]> git.eshelyaron.com Git - emacs.git/commitdiff
* Makefile.in (install-etc): Use existing Makefile variables.
authorGlenn Morris <rgm@gnu.org>
Thu, 13 Apr 2017 17:52:09 +0000 (13:52 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 13 Apr 2017 17:56:02 +0000 (13:56 -0400)
Makefile.in

index 06909c344459f3f97e80845a3833bbb75e860eeb..1b41205057daad8b3d6bf3455c22f360a2d69a21 100644 (file)
@@ -694,9 +694,8 @@ EMACS_ICON=emacs
 install-etc:
        umask 022; ${MKDIR_P} "$(DESTDIR)${desktopdir}"
        tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \
-       emacs_name=`echo emacs | sed '$(TRANSFORM)'`; \
-       sed -e "/^Exec=emacs/ s/emacs/$${emacs_name}/" \
-         -e "/^Icon=emacs/ s/emacs/$${emacs_name}/" \
+       sed -e "/^Exec=emacs/ s/emacs/${EMACS_NAME}/" \
+         -e "/^Icon=emacs/ s/emacs/${EMACS_NAME}/" \
          ${srcdir}/etc/emacs.desktop > $${tmp}; \
        ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"; \
        rm -f $${tmp}
@@ -708,12 +707,10 @@ install-etc:
        rm -f $${tmp}
        umask 022; $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)"
        tmp=etc/emacs.tmpservice; rm -f $${tmp}; \
-       emacs_name=`echo emacs | sed '$(TRANSFORM)'`; \
-       exe_name=$${emacs_name}${EXEEXT}; \
        client_name=`echo emacsclient | sed '$(TRANSFORM)'`${EXEEXT}; \
        sed -e '/^##/d' \
-         -e "/^Documentation/ s/emacs(1)/$${emacs_name}(1)/" \
-         -e "/^ExecStart/ s|emacs|${bindir}/$${exe_name}|" \
+         -e "/^Documentation/ s/emacs(1)/${EMACS_NAME}(1)/" \
+         -e "/^ExecStart/ s|emacs|${bindir}/${EMACS}|" \
          -e "/^ExecStop/ s|emacsclient|${bindir}/$${client_name}|" \
          ${srcdir}/etc/emacs.service > $${tmp}; \
        $(INSTALL_DATA) $${tmp} "$(DESTDIR)$(systemdunitdir)/${EMACS_NAME}.service"; \