Apache OpenOffice (AOO) Bugzilla – Issue 62795
mkout.pl is called for every (sub-)target
Last modified: 2006-04-20 12:28:03 UTC
The perl script mkout.pl is called for every subtarget that is started by build.pl. The following patch is a proof of principle fix (non-4nt only) for this problem. IMHO it is a problem because we fork a shell, that forks a perl to create a few directories. A better fix wold be to move this task into build.pl and do it exactly once per module.
Created attachment 34593 [details] Reduce calling of mkout.pl
Couldn't the "test -e" be replaced by a simple make dependency?
Created attachment 34599 [details] Like this?
Did I assign this to Michael? It was intended as a CC ;) @mkretzschmar: Yes, looks better this way! I was afraid of unnecessary "rebuilding" of this target, but there should be no dependencies for myworld.mk. @ause: FYI
Created attachment 34615 [details] Testing this now ...
A can of worms ... My last patch cannot work because it places a real target $(OUT)$/inc$/myworld.mk : into settings.mk and as settings.mk is not part of the startup code this inhibits the build of the desired target as dmake builds the first real (non-%) target it finds when no target is requested on the command line. Using an infered % target works around this problem. In principle one could put the target definition into startup.mk, but $(OUT) is not yet defined there and evaluates to "". Using $$(blah) for late expansion only works for dependencies, and not for targets. So, to get this right one would have to move a lot of included makefiles from the "normal" makefiles to .INCLUDES in startup.mk. This is a can of worms I don't want to open right now.
Created attachment 34620 [details] This works for now ...
Committed to vq29, reassigning for verification.
@ause: Please verify.
.