On OS X Yosemite, the standart texinfo version is quite old and does not suppprt certain features.
I now have installed, via homebrew, a newer version. As there is an already existing version, the binaries are not put into the PATH (keg only), which makes perfect sense.
Now, how can I tell make, without modifying the make file that I want to use the binary located at /usr/local/opt/texinfo/bin/makeinfo?
I could
- link makeinfo in the PATH
- execute make
- unlink texinfo
But I consider this un-elegant.
Is this my only option?
It depends on your makefile. If it uses a variable to hold the name of the makeinfo program, something like this:
then you can simply run
make MAKEINFO=/usr/local/opt/texinfo/bin/makeinfo.Alternatively, if it uses just the name of the program without a path, like
makeinfo, you can set your$PATHvariable before invoking make:PATH=/usr/local/opt/texinfo/bin:$PATH makeIf your makefile invokes
makeinfousing a hardcoded path with no variable:then you're out of luck and you HAVE TO change your makefile.