[fix] Use install instead of mkdir for packaging
This commit is contained in:
parent
4fe9fb445f
commit
8fb7ce644c
13
Makefile
13
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
|
||||
|
|
Loading…
Reference in New Issue