Skip to content

Commit d7f95b5

Browse files
committed
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.
1 parent 6deda6a commit d7f95b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ install: $(BINS) docs
156156
ifneq "$(MANPAGES)" ""
157157
@install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
158158
endif
159+
@install -d \
160+
"$(DESTDIR)$(ICODIR)/scalable/apps" \
161+
"$(DESTDIR)$(ICODIR)/48x48/apps"
159162
@install -m644 media/compton.svg "$(DESTDIR)$(ICODIR)/scalable/apps"/
160163
@install -m644 media/icons/48x48/compton.png "$(DESTDIR)$(ICODIR)/48x48/apps"/
161164
@install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/

0 commit comments

Comments
 (0)