ensure installation target directories exist

This commit is contained in:
Tilman Kranz 2023-07-18 16:57:41 +02:00
parent 984ec9317a
commit 5bf11ae35e

View File

@ -19,15 +19,23 @@ install: \
res/desktop/$(NAME).desktop \ res/desktop/$(NAME).desktop \
res/icons/$(NAME).svg \ res/icons/$(NAME).svg \
res/polkit/org.freedesktop.policykit.$(NAME).policy res/polkit/org.freedesktop.policykit.$(NAME).policy
install -d -m 755 \
$(DESTDIR)$(BINDIR)
install -m 755 \ install -m 755 \
bin/$(NAME) \ bin/$(NAME) \
$(DESTDIR)$(BINDIR)/$(NAME) $(DESTDIR)$(BINDIR)/$(NAME)
install -d -m 755 \
$(DESTDIR)$(POLDIR)
install -m 644 \ install -m 644 \
res/polkit/org.freedesktop.policykit.$(NAME).policy \ res/polkit/org.freedesktop.policykit.$(NAME).policy \
$(DESTDIR)$(POLDIR)/org.freedesktop.policykit.$(NAME).policy $(DESTDIR)$(POLDIR)/org.freedesktop.policykit.$(NAME).policy
install -d -m 755 \
$(DESTDIR)$(ICONSDIR)
install -m 644 \ install -m 644 \
res/icons/$(NAME).svg \ res/icons/$(NAME).svg \
$(DESTDIR)$(ICONSDIR)/$(NAME).svg $(DESTDIR)$(ICONSDIR)/$(NAME).svg
install -d -m 755 \
$(DESTDIR)$(APPDIR)
install -m 644 \ install -m 644 \
res/desktop/$(NAME).desktop \ res/desktop/$(NAME).desktop \
$(DESTDIR)$(APPDIR)/$(NAME).desktop $(DESTDIR)$(APPDIR)/$(NAME).desktop