From 12dfc55aca9f870ec4182f751776a0aa206a8a6a Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 21 Sep 2018 02:05:57 +0300 Subject: [PATCH] make install --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index ba37f12..0141dba 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +DESTDIR ?= +PREFIX ?= /usr/local + LIBS = -lm -ljpeg -pthread -levent -levent_pthreads CC = gcc CFLAGS = -c -O3 -Wall -Wextra @@ -10,6 +13,10 @@ PROG = ustreamer all: $(SOURCES) $(PROG) +install: $(PROG) + install -Dm755 ustreamer $(DESTDIR)$(PREFIX)/bin/ustreamer + + regen: tools/make-jpg-h.py src/data/blank.jpg src/data/blank.h BLANK 640 480