Re:How to Write Portable C Without Complicating Your Build
by thesmallestcat on Friday March 31, 2017 @01:29PM
(#14006021)
Quick, how do you install redis to a different prefix? Everybody knows `./configure --prefix=...` (or if they forget, there's `./configure --help`), `make PREFIX=...`, not so much.
[ Parent
| on HN ]
Re:How to Write Portable C Without Complicating Your Build
by antirez on Friday March 31, 2017 @02:31PM
(#14006630)
No way other than "cp redis-server /your/path".
Re:How to Write Portable C Without Complicating Your Build
by yellowapple on Friday March 31, 2017 @02:58PM
(#14006985)
I've seen quite a bit of "./configure"-less software use "PREFIX=/foo make install" (or some variation thereof) for that (something which I have to address as part of maintaining various Slackbuild scripts). This is usually part of the compilation/installation documentation. If not, install targets are usually simple enough that I can glean which environment variable the Makefile is using to control the installation prefix.
Worst case scenario, the SlackBuild I'm writing has to include some call to patch or sed in order to tweak the installation path, or I just have to cp the build output into the package's root directory (something which I'll likely have to do when I get around to updating the CouchDB SlackBuild, but have been putting off since 1.6.x works well enough on Slackware).