From 5bf11ae35e720b208933e0b5f0929620bae1ca98 Mon Sep 17 00:00:00 2001 From: Tilman Kranz Date: Tue, 18 Jul 2023 16:57:41 +0200 Subject: [PATCH] ensure installation target directories exist --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 09a2165..d9895ee 100644 --- a/Makefile +++ b/Makefile @@ -19,15 +19,23 @@ install: \ res/desktop/$(NAME).desktop \ res/icons/$(NAME).svg \ res/polkit/org.freedesktop.policykit.$(NAME).policy + install -d -m 755 \ + $(DESTDIR)$(BINDIR) install -m 755 \ bin/$(NAME) \ $(DESTDIR)$(BINDIR)/$(NAME) + install -d -m 755 \ + $(DESTDIR)$(POLDIR) install -m 644 \ res/polkit/org.freedesktop.policykit.$(NAME).policy \ $(DESTDIR)$(POLDIR)/org.freedesktop.policykit.$(NAME).policy + install -d -m 755 \ + $(DESTDIR)$(ICONSDIR) install -m 644 \ res/icons/$(NAME).svg \ $(DESTDIR)$(ICONSDIR)/$(NAME).svg + install -d -m 755 \ + $(DESTDIR)$(APPDIR) install -m 644 \ res/desktop/$(NAME).desktop \ $(DESTDIR)$(APPDIR)/$(NAME).desktop