575a516630
instead of making the "real" targets depend on the makefiles, add conditional makefile generation to the targets themselves. this causes makefile generation to follow the recursion order determined by the project, which is important when dealing with prl and module pri files. a side effect of this is that qmake and make calls are interleaved now, which is entirely different from a 'qmake -r' run. on the downside, calling make with multiple targets which operate on the same subprojects without prior makefile generation will make a mess, as the qmake calls will be racing. this should be no problem, as qmake does not generate recursive targets where this would be useful - at least by default. it is not sufficient to just order the creation of the makefiles non-recursively (e.g., by using gnu-specific order-only-prerequisites), as an interrupted and subsequently resumed build would happily skip the nested makefiles. workable alternative approaches would be walking the entire tree in a pre-pass to ensure makefile presence (which is incredibly slow) or creating additional stamp files only after recursing and having the makefiles depend on them (which is ugly). Task-number: QTBUG-23376 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Change-Id: I88d3e7610215677d362026de316513d3bea04b06
15 lines
431 B
Plaintext
15 lines
431 B
Plaintext
QMAKE_TAR = tar -cf
|
|
QMAKE_GZIP = gzip -9f
|
|
|
|
QMAKE_COPY = cp -f
|
|
QMAKE_COPY_FILE = $$QMAKE_COPY
|
|
QMAKE_COPY_DIR = $$QMAKE_COPY -R
|
|
QMAKE_MOVE = mv -f
|
|
QMAKE_DEL_FILE = rm -f
|
|
QMAKE_DEL_DIR = rmdir
|
|
QMAKE_CHK_DIR_EXISTS = test -d
|
|
QMAKE_CHK_FILE_EXISTS = test -f
|
|
QMAKE_CHK_EXISTS_GLUE = "|| "
|
|
QMAKE_MKDIR = mkdir -p
|
|
QMAKE_STREAM_EDITOR = sed
|