Core features of FREEd PID1 working in a systemd container
[gpl/argeo-freed.git] / local.mk
index 531f8ab815cedb3651c8fabec424716a8e03f627..7095276ba9b6f8a9e69e58aeb4f343942300be86 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,9 @@ 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