From 8fb7ce644c6ca6698290b06c6554fd295f751489 Mon Sep 17 00:00:00 2001 From: samuel Date: Wed, 1 Feb 2023 15:16:13 +0100 Subject: [PATCH] [fix] Use install instead of mkdir for packaging --- Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f2e0618..fe8d660 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,8 @@ $(HOME)/rpmbuild/SOURCES/$(NAME)-%.tar.gz: . .PHONY: install install: - mkdir --parents $(DESTDIR)$(VARDIR)/$(NAME)/captcha - mkdir --parents $(DESTDIR)$(SYSCONFDIR)/$(NAME) - install server.conf.sample $(DESTDIR)$(SYSCONFDIR)/$(NAME)/server.conf.sample - install server.conf.sample $(DESTDIR)$(SYSCONFDIR)/$(NAME)/server.conf - mkdir --parents $(DESTDIR)$(UNITDIR) - install systemd/netoik-api-server.service $(DESTDIR)$(UNITDIR)/netoik-api-server.service - mkdir --parents $(DESTDIR)$(BINDIR) - install bin/server $(DESTDIR)$(BINDIR)/$(NAME)-server + install -D --no-target-directory server.conf.sample $(DESTDIR)$(SYSCONFDIR)/$(NAME)/server.conf + install -D --target-directory=$(DESTDIR)$(SYSCONFDIR)/$(NAME) server.conf.sample + install -D --target-directory=$(DESTDIR)$(UNITDIR) systemd/netoik-api-server.service + install -D --no-target-directory bin/server $(DESTDIR)$(BINDIR)/$(NAME)-server + install --directory $(DESTDIR)$(VARDIR)/$(NAME)/captcha