make install: more flexible on relpath tuning

This commit is contained in:
Philippe Teuwen 2019-09-05 08:45:12 +02:00
parent ecb535cc58
commit 70a7a99751
2 changed files with 14 additions and 5 deletions

View file

@ -28,11 +28,11 @@ LD = g++
PATHSEP=/ PATHSEP=/
PREFIX ?= /usr/local PREFIX ?= /usr/local
UDEV_PREFIX ?= /etc/udev/rules.d UDEV_PREFIX ?= /etc/udev/rules.d
INSTALLBINRELPATH = /bin/ INSTALLBINRELPATH ?= /bin/
INSTALLSHARERELPATH = /share/proxmark3/ INSTALLSHARERELPATH ?= /share/proxmark3/
INSTALLFWRELPATH = /share/proxmark3/firmware/ INSTALLFWRELPATH ?= /share/proxmark3/firmware/
INSTALLTOOLSRELPATH = /share/proxmark3/tools/ INSTALLTOOLSRELPATH ?= /share/proxmark3/tools/
INSTALLDOCSRELPATH = /share/doc/proxmark3/ INSTALLDOCSRELPATH ?= /share/doc/proxmark3/
platform = $(shell uname) platform = $(shell uname)
DETECTED_OS=$(platform) DETECTED_OS=$(platform)

View file

@ -27,6 +27,15 @@ etc.
That should be a good start for you to create your package :) 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: 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:
``` ```