Build vs. Installation Prefix Overrides

At this point, I'd like to digress slightly to explain an elusive (or at least non-obvious) concept regarding prefix and other path variables defined in the GCS. In the preceding examples, I used prefix overrides on the make install command line, like this:

$ make prefix=/usr install
...

The question I wish to address is: What is the difference between using a prefix override for make all and for make install? In our small sample makefiles, we've managed to avoid using prefixes in any targets not related to installation, so it may not be clear to you at this point that a prefix is ever useful during the build stage. However, prefix variables can be very useful during the build stage to substitute paths into ...

Get Autotools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.