[PATCH] Fix build: don't recompile all C++ every time

Lubomir I. Ivanov neolit123 at gmail.com
Sat Oct 5 07:01:08 UTC 2013


On 5 October 2013 16:52, Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn at axis.com> wrote:
> Lubomir's patch seems to do a better job, and also makes target 'uicables'
> useless.
>

do you know if it is possible to feed multiple wildcards to a rule, like so:
%.o: %.cpp %.ui

and then we can check if a .ui file exist and call UIC before calling
CXX for a file with the same name in that rule, removing the rule:
ui_%.h: %.ui .uic

my idea is that changes in specific .ui files should only update
specific .o files and not all .o files. not sure that will work in
general.

also any idea where this call comes from:
g++ -Wall -g     -c -o qthelper.o qthelper.cpp
and why adding $(UIC_HEADERS) in the dependencies fixes it? i've tried
disabling all CXX calls, but it still triggers.

lubomir
--


More information about the subsurface mailing list