From 5fab257804ab2d6d02207cb3a84a7cf3b6ebe743 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 27 Jan 2016 12:11:20 +0100 Subject: [PATCH] init only if not DESTDIR --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 975edd7..08f0b02 100644 --- a/Makefile +++ b/Makefile @@ -111,6 +111,8 @@ install: ot-recorder ocat cp -R docroot/* $(DESTDIR)$(DOCROOT)/ install -m 0755 ot-recorder $(DESTDIR)$(INSTALLDIR)/sbin install -m 0755 ocat $(DESTDIR)$(INSTALLDIR)/bin - $(DESTDIR)$(INSTALLDIR)/sbin/ot-recorder --initialize --storage $(DESTDIR)$(STORAGEDEFAULT) +ifndef DESTDIR + $(INSTALLDIR)/sbin/ot-recorder --initialize +endif # mkdir -p $(DESTDIR)/etc/systemd/system/ # install --mode 0644 etc/ot-recorder.service $(DESTDIR)/etc/systemd/system/ot-recorder.service