On Mon, May 27, 2013 at 12:38:09AM +0200, Marc Weber wrote:
> Excerpts from Zulox4's message of Sun May 26 23:54:33 +0200 2013:
> > The old make or nmake doesn't change frequently, and it's working well.
> 1) configure is slow, if you need to run it once only it doesn't matter.
> 
> If you have to test multiple cases:
> 
> If you want to test 4 cases:
>   - no python
>   - py 2
>   - py 3
>   - py 2 an py 3
> using the same "codebase", how to do that with the traditional make system 
> efficiently?
> 
> with cmake you do:
> 
> mkdir case{1,2,3,4}
> 
> cd case1; cmake ../ the-cmake-flags

for i in $(seq 4); do make -C src shadow SHADOWDIR=case$i; done
(cd src/case1 && ./configure ... && make)
(cd src/case2 && ./configure ... && make)
(cd src/case3 && ./configure ... && make)
(cd src/case4 && ./configure ... && make)

This is similar to what I do for building the 6 different variants for
Debian.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui