]> code.delx.au - gnu-emacs/commitdiff
(install-etc): Fix previous change
authorGlenn Morris <rgm@gnu.org>
Mon, 15 Oct 2012 21:57:20 +0000 (17:57 -0400)
committerGlenn Morris <rgm@gnu.org>
Mon, 15 Oct 2012 21:57:20 +0000 (17:57 -0400)
Makefile.in

index 95f851b0adab53e2ada1eae5227932b9c6931653..d929160c597f0afbf98a7b42568a4b843b1bd71c 100644 (file)
@@ -647,9 +647,9 @@ install-etc:
          ( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \
          for icon in $${dir}/*.*; do \
            [ -r $${icon} ] || continue ; \
-           dest=`echo "$${icon}" | sed '$(TRANSFORM)'` ; \
+           dest=`echo "$${icon}" | sed -e 's|.*/||' -e '$(TRANSFORM)'` ; \
            ( cd $${thisdir}; \
-             ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dest} ) \
+             ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \
            || exit 1; \
          done ; \
        done