diff --git a/Makefile b/Makefile index b379c65..d723e48 100644 --- a/Makefile +++ b/Makefile @@ -90,3 +90,8 @@ clobber: clean mdb/liblmdb.a: (cd mdb && make) +install: ot-recorder ocat + mkdir -p $(BUILDROOT)$(INSTALLDIR)/{bin,sbin} + mkdir -p $(STORAGEDEFAULT) + install --mode 0755 ot-recorder $(BUILDROOT)$(INSTALLDIR)/sbin + install --mode 0755 ocat $(BUILDROOT)$(INSTALLDIR)/bin diff --git a/config.mk.in b/config.mk.in index aa2d051..c1624ce 100644 --- a/config.mk.in +++ b/config.mk.in @@ -1,5 +1,7 @@ # Select features you want. Default is fine for most installations +INSTALLDIR = /usr/local + # Do you want recorder's built-in HTTP REST API? HAVE_HTTP ?= yes