commit a3f75ccf177ee909c5f05faf13158c39240f6c3b
parent ef5fc39099d760490f648ac068f72ce8d7b7b2c7
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date: Sat, 31 Aug 2019 21:29:02 +0200
Add an install-target to the makefile
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -5,9 +5,16 @@ CFLAGS ?= -O5
LDFLAGS ?= -s
_CFLAGS = $(CFLAGS) $(PJSIP_CFLAGS)
_LDFLAGS = $(LDFLAGS) $(PJSIP_LDFLAGS)
+INSTALL = install
+DESTDIR ?= /usr
siproc: src/siproc.o
$(CPP) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)
%.o: %.cpp
$(CPP) $(_CFLAGS) -c -o $@ $^
+
+.PHONY:install
+
+install: siproc
+ $(INSTALL) -m 755 $^ ${DESTDIR}/bin/