Add install_systemd make target
This commit is contained in:
parent
73dc9f63d6
commit
ea29a0467a
4
Makefile
4
Makefile
@ -1,6 +1,7 @@
|
|||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
|
SYSTEMDDIR ?= /etc/systemd
|
||||||
|
|
||||||
all: reaction ip46tables
|
all: reaction ip46tables
|
||||||
|
|
||||||
@ -31,3 +32,6 @@ signatures: reaction.deb reaction ip46tables
|
|||||||
install: all
|
install: all
|
||||||
@install -m755 reaction $(DESTDIR)$(BINDIR)
|
@install -m755 reaction $(DESTDIR)$(BINDIR)
|
||||||
@install -m755 ip46tables $(DESTDIR)$(BINDIR)
|
@install -m755 ip46tables $(DESTDIR)$(BINDIR)
|
||||||
|
|
||||||
|
install_systemd: install
|
||||||
|
@install -m644 config/reaction.debian.service $(SYSTEMDDIR)/system/reaction.service
|
||||||
|
Loading…
Reference in New Issue
Block a user