From c65ae2fbbdb350975f1f097f6f150bc7e8af6e4e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 14 Apr 2021 20:22:06 +0200 Subject: [PATCH] Remove -o root -g root from the Makefile. This isn't needed for regular (root) installs, but breaks non-root users wanting to install to a temporary directory first. Suggested by s-ol bekic. --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a59e782..5160e83 100644 --- a/Makefile +++ b/Makefile @@ -38,15 +38,15 @@ clean: $(RM) bmusb.o main.o v4l2proxy.o fake_capture.o bmusb.pic.o fake_capture.pic.o $(LIB) $(SOLIB) main bmusb-v4l2proxy install: all - $(INSTALL) -m 755 -o root -g root -d \ + $(INSTALL) -m 755 -d \ $(DESTDIR)$(LIBDIR) \ $(DESTDIR)$(LIBDIR)/pkgconfig \ $(DESTDIR)$(PREFIX)/include/bmusb \ $(DESTDIR)$(UDEVDIR)/rules.d - $(INSTALL) -m 755 -o root -g root $(LIB) $(SOLIB) $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 755 $(LIB) $(SOLIB) $(DESTDIR)$(LIBDIR) $(LN) -sf $(SOLIB) $(DESTDIR)$(LIBDIR)/$(SONAME) $(LN) -sf $(SOLIB) $(DESTDIR)$(LIBDIR)/$(SODEV) - $(INSTALL) -m 755 -o root -g root bmusb/bmusb.h bmusb/fake_capture.h $(DESTDIR)$(PREFIX)/include/bmusb - $(INSTALL) -m 644 -o root -g root bmusb.pc $(DESTDIR)$(LIBDIR)/pkgconfig - $(INSTALL) -m 644 -o root -g root 70-bmusb.rules $(DESTDIR)$(UDEVDIR)/rules.d + $(INSTALL) -m 755 bmusb/bmusb.h bmusb/fake_capture.h $(DESTDIR)$(PREFIX)/include/bmusb + $(INSTALL) -m 644 bmusb.pc $(DESTDIR)$(LIBDIR)/pkgconfig + $(INSTALL) -m 644 70-bmusb.rules $(DESTDIR)$(UDEVDIR)/rules.d -- 2.39.2