mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.99k stars 715 forks source link

Makefile: allow PREFIX to be overridden. Example: `PREFIX=~/.local make install` #5111

Closed sidkshatriya closed 8 months ago

sidkshatriya commented 8 months ago

Makefile: allow PREFIX to be overridden. Example: PREFIX=~/.local make install

It was always possible to install kakoune with custom prefix. This seems to be a regression due to recent changes to the Makefile. This commit should hopefully restore old behavior.

Screwtapello commented 8 months ago

You can still install Kakoune with a custom prefix if you do:

make PREFIX=~/.local install

(that is, set the variable on the command line, rather than in the environment)

sidkshatriya commented 8 months ago

Thanks for the tip ! useful ! I leave it to others to decide if this PR should be closed / merged.

mawww commented 8 months ago

Unfortunately VAR ?= value does not seem to be part of POSIX make, which is what the recent changes to the Makefile were about. So yeah, PREFIX should be passed after the make command.