]> git.sesse.net Git - bmusb/commitdiff
Remove -o root -g root from the Makefile.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Wed, 14 Apr 2021 18:22:06 +0000 (20:22 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Wed, 14 Apr 2021 18:22:29 +0000 (20:22 +0200)
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

index a59e782389ca2af9848e55f0957abdb4a99dff64..5160e83db6e5c6bb332f5a392959869307752c09 100644 (file)
--- 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