summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-05-13 05:40:55 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-05-13 07:00:24 +0200
commitaf2f2f91ab6750e8f7d36764b83d2eaec7cdfb26 (patch)
treed416e348d3629b2be439c39a85a52f9685bb506f /src/Makefile
parentcleanup after signale fixed (diff)
added systemd service file
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 4524b29..b86007f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -98,8 +98,8 @@ manpage:
$(MAKE) --directory="../doc/" manpage
-INSTALL_TARGETS := install-bin install-etc
-REMOVE_TARGETS := remove-bin remove-etc
+INSTALL_TARGETS := install-bin install-systemd install-etc
+REMOVE_TARGETS := remove-bin remove-systemd remove-etc
ifdef MANDIR
INSTALL_TARGETS += install-man
@@ -117,6 +117,10 @@ install-bin: $(EXECUTABLE)
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 755 $(EXECUTABLE) $(DESTDIR)$(BINDIR)
+install-systemd:
+ $(INSTALL) -d $(DESTDIR)$(SYSTEMDDIR)
+ $(INSTALL) -m 755 ../contrib/systemd.service $(DESTDIR)$(SYSTEMDDIR)/$(EXECUTABLE).service
+
install-etc:
$(INSTALL) -d $(DESTDIR)$(ETCDIR)/init.d/
$(INSTALL) -m 755 ../contrib/initscript $(DESTDIR)$(ETCDIR)/init.d/$(EXECUTABLE)
@@ -140,6 +144,9 @@ remove: $(REMOVE_TARGETS)
remove-bin:
rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)
+remove-systemd:
+ rm -f $(DESTDIR)$(SYSTEMDDIR)/$(EXECUTABLE).service
+
remove-etc:
rm -f $(DESTDIR)$(ETCDIR)/init.d/$(EXECUTABLE)