webcam-loopback-manipulation-screensharing-and-stuff git · main
vcam: v4l2 loopback with overlays, filters, OpenCV and RVM matting
C 51.3% C++ 40.7% Markdown 6.9% Makefile 1%git clone https://git.christianimmanuel.de/linux-system/webcam-loopback-manipulation-screensharing-and-stuff.gitwget https://git.christianimmanuel.de/linux-system/webcam-loopback-manipulation-screensharing-and-stuff/archive/webcam-loopback-manipulation-screensharing-and-stuff.tar.gzAllow install /usr
Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d806385..5ba85ba 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ CC := gcc + +PREFIX ?= /usr/local +BINDIR := $(PREFIX)/bin + CFLAGS := -std=c11 -O2 -Wall -Wextra -Wpedantic \ -D_POSIX_C_SOURCE=200809L \ -I include \ @@ -30,10 +34,11 @@ src/%.o: src/%.c include/vcam.h $(CC) $(CFLAGS) -c -o $@ $< install: $(BIN) - install -m 755 $(BIN) /usr/local/bin/ - install -m 755 scripts/vcam-ctl /usr/local/bin/ - install -m 755 scripts/vcam-setup /usr/local/bin/ - install -m 755 scripts/vcam-tune /usr/local/bin/ + install -d "$(DESTDIR)$(BINDIR)" + install -m 755 $(BIN) "$(DESTDIR)$(BINDIR)/" + install -m 755 scripts/vcam-ctl "$(DESTDIR)$(BINDIR)/" + install -m 755 scripts/vcam-setup "$(DESTDIR)$(BINDIR)/" + install -m 755 scripts/vcam-tune "$(DESTDIR)$(BINDIR)/" clean: rm -f $(OBJS) $(BIN) $(TEST)