Makefile: add install{,-udevrule} and uninstall

This is supposed to help distro packagers of ltunify.
This commit is contained in:
Peter Wu
2013-07-23 14:10:36 +02:00
parent 137bd026ce
commit 9d5ac81f32
2 changed files with 32 additions and 2 deletions

View File

@@ -33,7 +33,19 @@ Usage of USB debugger:
Pairing tool (ltunify)
ltunify allows you to pair new devices, unpair existing devices or view
information for those devices. Run `ltunify --help` for available options.
information for those devices. In order to build the ltunify binary and install
it to `$HOME/bin/ltunify`:
make ltunify
make install-home
If you intend to package ltunify or otherwise install it system-wide with a
udevrule, you can use:
make ltunify
make install DESTDIR=$pkgdir bindir=/usr/bin udevrulesdir=/lib/udev/rules.d
Once installed, run `ltunify --help` for available options.
Usage of the pairing tool is pretty straight-forward. Example session: