[Libreoffice] how to 'make' a single target?

Markus Mohrhard markus.mohrhard at googlemail.com
Sat Oct 29 16:37:36 PDT 2011


Hello Kevin,

2011/10/30 Kevin Hunter <hunteke at earlham.edu>:
> Hullo List,
>
> I'm currently working in the sc/ module, and I'm in the "make small change,
> re-compile, make small change, re-compile" stage.  This is proving very
> cumbersome, however, as I'm unable to re-make just the affected files.  For
> instance, note my attached output, showing the output of
>
> $ make -j1 | head; sleep; make -j1 | head
>
> Should not at least the first 3 completed executions no longer need to be
> re-executed?
>
> This is frustrating because it results in a latency of 5+ minutes on my slow
> 2-core machine before I can see the results of a code change.
>
> Are there any pointers for me on how I can compile _just the exact_ piece of
> code on which I'm working (and affected other snippets, of course)?
>

 Use make build -srj2 but leave out the "build" at least once before
creating the patch or pushing your changes. What needs most time is
linking and executing our unit tests and with make build you skip the
tests.

Regards,
Markus


More information about the LibreOffice mailing list