mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 10:16:52 +08:00
make install: more flexible on relpath tuning
This commit is contained in:
parent
ecb535cc58
commit
70a7a99751
2 changed files with 14 additions and 5 deletions
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue