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