K
K
Konstantin2021-06-30 14:37:42
GNU Make
Konstantin, 2021-06-30 14:37:42

How to change PREFIX when building/compiling a package?

Hello.
There are sources from https://github.com/evilsocket/opensnitch
The project does not have a configure file, only a Makefile.
After compiling with make and building the package with checkinstall, the binaries are located in /usr/local/bin/ and either in /usr/local/lib/.

The goal is to put the bin and lib files anywhere but not in "/usr/local", for example just in "/usr".

I googled that you can add the PREFIX parameter to make,
make PREFIX=/usr
but this does not give any result, as if it is ignored.
Similarly, adding a line to the beginning of the Makefile file
PREFIX=/usr
also has no effect.

Please tell me how to compile correctly so that the libs and binaries are not in "/usr/local".

Search by reference files "

egrep -r "/usr/local"
daemon/opensnitchd.service:ExecStart=/usr/local/bin/opensnitchd -rules-path /etc/opensnitchd/rules
Двоичный файл daemon/opensnitchd совпадает
daemon/Makefile:	@cp opensnitchd /usr/local/bin/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question