From d7f95b56b176281bfb252c54defef48c9cd1f4e1 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Sun, 20 Sep 2015 17:16:54 +0800 Subject: [PATCH] Misc: Create directories for icons before installing them Misc: Create directories for icons before installing them. This fixes the install failure if the DESTDIR used when executing `make install` does not contain the icon directories. It could appear when the user does not wish to directly install the software to the system, like in Gentoo ebuild or Arch Linux AUR building. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index d57cb1f..25e78b1 100644 --- a/Makefile +++ b/Makefile @@ -156,6 +156,9 @@ install: $(BINS) docs ifneq "$(MANPAGES)" "" @install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/ endif + @install -d \ + "$(DESTDIR)$(ICODIR)/scalable/apps" \ + "$(DESTDIR)$(ICODIR)/48x48/apps" @install -m644 media/compton.svg "$(DESTDIR)$(ICODIR)/scalable/apps"/ @install -m644 media/icons/48x48/compton.png "$(DESTDIR)$(ICODIR)/48x48/apps"/ @install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/