Create the output directory for depfile


Ensure that the output directory exists before writing the depfile.

Amends 559fbc4f8166cf1e1a1a953fb2f40c1194c76538

Fixes: QTBUG-126634
Pick-to: 6.8
Change-Id: I116310ad5d0738dae98aa66e51efe8488fbbe81d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitc25c3c736776368173dd7d351613171f3e5ac279
parent2bc3d5b78885f8230e0c6d2ebfd7d3b8511ffc64
authorAlexey Edelev <alexey.edelev@qt.io>
committerAlexey Edelev <alexey.edelev@qt.io>
commit timeTue, 25 Jun 2024 10:47:26 +0000