Set INSTALL_PREFIX only if it hasn't already been set. This allows
changing the installation prefix without editing the Makefile, i.e. with
INSTALL_PREFIX=<prefix> make install
Hello Rohan, thank you for your patch, but this should already work?
Instead of using environment variables, it is done by passing the values
as make macros.
For an example you can check the archlinux build script[1] which passes
the INSTALL_PREFIX=usr macro to set it to install in /usr:
$ pacman -Ql mpris-ctl
mpris-ctl /usr/
mpris-ctl /usr/bin/
mpris-ctl /usr/bin/mpris-ctl
mpris-ctl /usr/share/
mpris-ctl /usr/share/man/
mpris-ctl /usr/share/man/man1/
mpris-ctl /usr/share/man/man1/mpris-ctl.1.gz
Cheers,
/Marius
[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mpris-ctl