From a1ba5d23745404e237a1441948176a923cd63345 Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Sun, 29 Mar 2009 19:18:40 +0200 Subject: [PATCH] install in /usr/local add uninstall target add 85-usbmuxd.rules + install in /usr/local/lib/udev/rules.d (if that directory even gets scanned) Signed-off-by: Nikias Bassen --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e0c8971..40c1e0a 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ TARGETS=usbmuxd iproxy libusbmuxd.so CFLAGS=-I. -Wall -g -DDEBUG -fPIC LIBS=-lpthread -lusb -lrt LDFLAGS=-L. -INSTALL_PREFIX=/usr +INSTALL_PREFIX=/usr/local all: $(TARGETS) @@ -33,6 +33,8 @@ realclean: clean install: all install -m 755 usbmuxd $(INSTALL_PREFIX)/sbin/ + # udev crack + install -m 644 85-usbmuxd.rules $(INSTALL_PREFIX)/lib/udev/rules.d/ # protocol install -m 644 usbmuxd-proto.h $(INSTALL_PREFIX)/include/ # iproxy @@ -40,4 +42,12 @@ install: all install -m 644 usbmuxd.h $(INSTALL_PREFIX)/include/ install -m 755 iproxy $(INSTALL_PREFIX)/bin/ +uninstall: + -rm $(INSTALL_PREFIX)/sbin/usbmuxd + -rm $(INSTALL_PREFIX)/lib/udev/rules.d/85-usbmuxd.rules + -rm $(INSTALL_PREFIX)/include/usbmuxd-proto.h + -rm $(INSTALL_PREFIX)/lib/libusbmux.so + -rm $(INSTALL_PREFIX)/include/usbmuxd.h + -rm $(INSTALL_PREFIX)/bin/iproxy + .PHONY: all clean realclean -- cgit v1.1-32-gdbae