Nimbin[12]?Linux & System / webcam-loopback-manipulation-screensharing-and-stuff / commits / 5eb221d

webcam-loopback-manipulation-screensharing-and-stuff git · main

vcam: v4l2 loopback with overlays, filters, OpenCV and RVM matting

webcam v4l2 opencv onnx c · first commit 2026-06-29 · last commit 2026-11-12 (11 days ago) · synced 1 hour ago · upstream: github.com/nimbin2/Webcam-Filter---ScreenSharing---and-Stuff

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.gz

Allow install /usr

Christian Immanuel · 2026-06-30 08:23 · 5eb221dc9df581259e1419e1ecef0436d18fd4c1

 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)