summaryrefslogtreecommitdiff
path: root/solenv/gbuild/Deliver.mk
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-01-31 18:35:25 +0100
committerMichael Stahl <mst@openoffice.org>2011-01-31 18:35:25 +0100
commitd1500544fdd2716463eef4c9c7a7104c7a0dac87 (patch)
tree99e10e6206ebd50f1adaa0351bb4f15654d85dad /solenv/gbuild/Deliver.mk
parent5446d4f383d07ed44eb868d291214c97f4cdce18 (diff)
gnumake3: #i116711#: clean up tempfile creation: use $TMPDIR instead of workdir
Diffstat (limited to 'solenv/gbuild/Deliver.mk')
-rw-r--r--solenv/gbuild/Deliver.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/solenv/gbuild/Deliver.mk b/solenv/gbuild/Deliver.mk
index d508cdf49415..60772894f87c 100644
--- a/solenv/gbuild/Deliver.mk
+++ b/solenv/gbuild/Deliver.mk
@@ -62,8 +62,12 @@ endif
define gb_Deliver_setdeliverlogcommand
ifeq ($$(words $(gb_Module_ALLMODULES)),1)
$$(eval $$(call gb_Output_announce,$$(strip $$(gb_Module_ALLMODULES)),$$(true),LOG,1))
-deliverlog : COMMAND := mkdir -p $$(OUTDIR)/inc/$$(strip $$(gb_Module_ALLMODULES)) &&
-deliverlog : COMMAND += cat $$(call var2file,$(call uniqname),100,$$(sort $$(gb_Deliver_DELIVERABLES))) | $(gb_AWK) -f $$(GBUILDDIR)/processdelivered.awk > $$(OUTDIR)/inc/$$(strip $(gb_Module_ALLMODULES))/gb_deliver.log
+deliverlog : COMMAND := \
+ mkdir -p $$(OUTDIR)/inc/$$(strip $$(gb_Module_ALLMODULES)) \
+ && RESPONSEFILE=$$(call var2file,$(shell $(gb_MKTEMP)),100,$$(sort $$(gb_Deliver_DELIVERABLES))) \
+ && $(gb_AWK) -f $$(GBUILDDIR)/processdelivered.awk < $$$${RESPONSEFILE} \
+ > $$(OUTDIR)/inc/$$(strip $(gb_Module_ALLMODULES))/gb_deliver.log \
+ && rm -f $$$${RESPONSEFILE}
else
$$(eval $$(call gb_Output_announce,more than one module - creating no deliver.log,$$(true),LOG,1))
deliverlog : COMMAND := true