Apache OpenOffice (AOO) Bugzilla – Issue 67911
dmake removes tempfiles of current target after each recipe
Last modified: 2013-08-07 15:34:52 UTC
Follow up to issue 64583. Dmake currently removes all tempfiles of the current target after execution of each recipe line. This adds overhead and should only be done after the last recipe line.
The summary is not quite accurate. It removes the tempfiles if the end of the recipes for the current target process is reached. For non-parallel (-P1) execution of dmake this is always the case after each recipe line. The folowing makefile demonstrates this: --- makefile.mk --- SHELL*:=/bin/sh SHELLFLAGS*:=-ce all : +echo $(assign VERSIONTMP:=$(mktmp iii)) ; sleep 1 +echo Z$(VERSIONTMP)Z ; ls $(VERSIONTMP) --- makefile.mk --- For `dmake -r -P3` the tempfile is still there at the "ls $(VERSIONTMP)", for `dmake -r` it is already deleted.
first makefile snippet that runs with -Pn but breaks otherwise :)
Created attachment 47911 [details] Patch for dmake
Committed (plus testcase) to dmake411.
Please verify
fixes single process issue :)
dmake 4.11 is in use now