make install: more flexible on relpath tuning
This commit is contained in:
@@ -28,11 +28,11 @@ LD = g++
|
||||
PATHSEP=/
|
||||
PREFIX ?= /usr/local
|
||||
UDEV_PREFIX ?= /etc/udev/rules.d
|
||||
INSTALLBINRELPATH = /bin/
|
||||
INSTALLSHARERELPATH = /share/proxmark3/
|
||||
INSTALLFWRELPATH = /share/proxmark3/firmware/
|
||||
INSTALLTOOLSRELPATH = /share/proxmark3/tools/
|
||||
INSTALLDOCSRELPATH = /share/doc/proxmark3/
|
||||
INSTALLBINRELPATH ?= /bin/
|
||||
INSTALLSHARERELPATH ?= /share/proxmark3/
|
||||
INSTALLFWRELPATH ?= /share/proxmark3/firmware/
|
||||
INSTALLTOOLSRELPATH ?= /share/proxmark3/tools/
|
||||
INSTALLDOCSRELPATH ?= /share/doc/proxmark3/
|
||||
|
||||
platform = $(shell uname)
|
||||
DETECTED_OS=$(platform)
|
||||
|
||||
@@ -27,6 +27,15 @@ etc.
|
||||
|
||||
That should be a good start for you to create your package :)
|
||||
|
||||
If you need to tune some more paths, see their definition in `Makefile.defs`.
|
||||
E.g. you might need to move the documentation elsewhere according to your distro policy:
|
||||
|
||||
```
|
||||
make install PREFIX=/usr INSTALLDOCSRELPATH=/share/doc/proxmark3-${version}/
|
||||
```
|
||||
|
||||
Be careful to respect the same leading/closing `/` schema else you'll mess up your paths!
|
||||
|
||||
It's possible to add other firmwares as well with tagged names (`FWTAG=<mytag>`), e.g. here we're compiling another image for non-RDV4 devices:
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user