Skip to content

Commit dabf07e

Browse files
committed
patch 9.1.0687: Makefile may not install desktop files
Problem: Makefile may not install desktop files Solution: Check for "$(DESTDIR)$(DATADIR)" instead of just "$DESTDIR", which is usually not defined, add uninstall rules for the icons and the desktop files closes: #15528 fixes: #15546 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 1c4f402 commit dabf07e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ ICONTHEMEPATH = $(DATADIR)/icons/hicolor
26242624
DESKTOPPATH = $(DESTDIR)$(DATADIR)/applications
26252625
KDEPATH = $(HOME)/.kde/share/icons
26262626
install-icons:
2627-
if test -n "$(DESTDIR)"; then \
2627+
if test -n "$(DESTDIR)$(DATADIR)"; then \
26282628
$(MKDIR_P) $(ICON48PATH) $(ICON32PATH) \
26292629
$(ICON16PATH) $(DESKTOPPATH); \
26302630
fi
@@ -2845,6 +2845,8 @@ uninstall_runtime:
28452845
-rm -f $(SYS_OPTWIN_FILE)
28462846
-rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
28472847
-rm -rf $(DEST_COL)/tools
2848+
-rm -f $(DESKTOPPATH)/vim.desktop $(DESKTOPPATH)/gvim.desktop
2849+
-rm -f $(ICON16PATH)/gvim.png $(ICON32PATH)/gvim.png $(ICON48PATH)/gvim.png
28482850
-rm -rf $(DEST_COL)/lists
28492851
-rm -f $(DEST_SYN)/shared/*.vim $(DEST_SYN)/shared/README.txt
28502852
-rm -f $(DEST_SYN)/modula2/opt/*.vim

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
687,
707709
/**/
708710
686,
709711
/**/

0 commit comments

Comments
 (0)