[Qt-interest] setting makefile variable from .pro file
andrew.m.goth at l-3com.com
andrew.m.goth at l-3com.com
Wed Feb 4 22:30:12 CET 2009
Pete Black wrote:
> andrew.m.goth at l-3com.com wrote:
> > Perhaps you were thinking of INSTALL_DIR?
I took a second look. INSTALL_DIR is the command that is used for
copying directories. It is not the name of a directory.
> Basically I'm looking for something similar to "./configure --prefix".
> Looking at the generated make file INSTALL_ROOT is prefixed to every
> installation path. For instance, I have:
>
> install_target: first FORCE
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR)
> $(INSTALL_ROOT)/usr/local/bin/ -$(INSTALL_PROGRAM)
> ...
I don't have that in any of my generated makefiles. You must be using
an option I haven't needed yet.
After scouring the documentation (with grep, hehehe) and checking the
qmake sources, I have concluded that INSTALL_ROOT is intended to only be
set by the user of the makefile. There is no mechanism for it to be set
from qmake. Here is the only mention I can find in the documentation:
http://doc.trolltech.com/4.4/qt-embedded-install.html#step-3-building-th
e-library
INSTALL_ROOT is indeed like configure --prefix, but you can't provide a
default from your PRO file. If your package has a configure script, you
can make your configure script modify the makefile after qmake generates
it.
Are you sure INSTALL_DIR is what you want? Why not DESTDIR?
--
Andy Goth
<amgoth at link.com>
More information about the Qt-interest-old
mailing list