[fix] Use install instead of mkdir for packaging

This commit is contained in:
samuel 2023-02-01 15:16:13 +01:00
parent 4fe9fb445f
commit 8fb7ce644c
1 changed files with 5 additions and 8 deletions

View File

@ -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