install: Install binary into bin/, not sbin/
There are plenty of ways today to run flashprog as a normal,
non-root user. Hence it should live in bin/, where it can be
shared by root and others.
Change-Id: Ia614ea234237668cb4d6a0c1915e41975aae70d4
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/265
diff --git a/Makefile b/Makefile
index cc6e4d4..12adf61 100644
--- a/Makefile
+++ b/Makefile
@@ -1032,9 +1032,9 @@
@+$(MAKE) -C util/ich_descriptors_tool/ clean
install: $(PROGRAM)$(EXEC_SUFFIX) $(MANS)
- mkdir -p $(DESTDIR)$(PREFIX)/sbin
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(MANDIR)/man8
- $(INSTALL) -m 0755 $(PROGRAM)$(EXEC_SUFFIX) $(DESTDIR)$(PREFIX)/sbin
+ $(INSTALL) -m 0755 $(PROGRAM)$(EXEC_SUFFIX) $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m 0644 $(MANS) $(DESTDIR)$(MANDIR)/man8
libinstall: libflashprog.a include/libflashprog.h