Introduce init runtime manager
[gpl/argeo-freed.git] / local.mk
index 531f8ab815cedb3651c8fabec424716a8e03f627..b2af1350ae93149c275b19ed65826d4f0467129b 100644 (file)
--- a/local.mk
+++ b/local.mk
@@ -5,7 +5,7 @@ bindir ?= $(exec_prefix)/bin
 sbindir ?= $(exec_prefix)/sbin
 libdir ?= $(exec_prefix)/lib
 libexecdir ?= $(exec_prefix)/libexec
-sysconfdir = $(prefix)/etc
+sysconfdir ?= $(prefix)/etc
 srcdir ?= src
 datarootdir ?= $(prefix)/share
 
@@ -18,9 +18,11 @@ clean:
        $(MAKE) -C sjbin clean
 
 install:
-       $(COPY) -r etc/* $(DESTDIR)$(sysconfdir)
+       $(COPY) -r --no-clobber etc/* $(DESTDIR)$(sysconfdir)
        $(COPY) -r usr/bin/* $(DESTDIR)$(bindir)
        $(COPY) -r usr/share/* $(DESTDIR)$(datarootdir)
        $(COPY) -r usr/lib/* $(DESTDIR)$(libdir)
-       $(COPY) -r usr/libexec/* $(DESTDIR)$(libexec)
+       $(COPY) -r usr/libexec/* $(DESTDIR)$(libexecdir)
        $(MAKE) -C sjbin install
+       systemctl daemon-reload
+       
\ No newline at end of file