diff options
author | Paul Sladen | 2009-03-29 19:18:40 +0200 |
---|---|---|
committer | Nikias Bassen | 2009-03-29 19:18:40 +0200 |
commit | a1ba5d23745404e237a1441948176a923cd63345 (patch) | |
tree | 1db21d530f03fc70ba12f860bbbb71ad1a53d222 | |
parent | 8f9c1679334cb1b019c3db1d5663e0b5102f5eca (diff) | |
download | usbmuxd-a1ba5d23745404e237a1441948176a923cd63345.tar.gz usbmuxd-a1ba5d23745404e237a1441948176a923cd63345.tar.bz2 |
[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 <nikias@gmx.li>
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |