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