Skip to Main Content
Autotools
book

Autotools

by John Calcote
July 2010
Intermediate to advanced content levelIntermediate to advanced
360 pages
11h 12m
English
No Starch Press
Content preview from Autotools

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GNU Autoconf, Automake, and Libtool

GNU Autoconf, Automake, and Libtool

Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
Red Hat® Linux® 7 Unleashed

Red Hat® Linux® 7 Unleashed

Bill Ball, David Pitts

Publisher Resources

ISBN: 9781593272067Errata