Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/46927 )
Change subject: Add install and uninstall targets to Makefile ......................................................................
Add install and uninstall targets to Makefile
- Will install em100 to /usr/local/bin - Will install udev rule to /etc/udev/rules.d
Assumes that there is a plugdev group (some systems may not have it)
Signed-off-by: Alexander Amelkin a.amelkin@yadro.com Change-Id: Ibfcd6f9f2f577b1f7d8d2d4b0a89405d38264d3d --- M Makefile 1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/27/46927/1
diff --git a/Makefile b/Makefile index a5b8c33..14c928e 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,14 @@ distclean: clean rm -f em100pro_chips.h
+install: em100 60-dediprog-em100pro.rules + install -m 644 60-dediprog-em100pro.rules /etc/udev/rules.d/ + install -s -m 750 -g plugdev em100 /usr/local/bin/ + +uninstall: /usr/local/bin/em100 + rm -f /etc/udev/rules.d/60-dediprog-em100pro.rules + rm -f /usr/local/bin/em100 + -include .dependencies
.PHONY: clean distclean tarballs