[Chapel Merge] fix compiler/next/lib/util/Makefile - mkdir first

Branch: refs/heads/master
Revision: 7dd8130
Author: mppf
Log Message:

Merge pull request #17875 from mppf/fix-parallel-make-issue

fix compiler/next/lib/util/Makefile - mkdir first

We have been seeing sporadic parallel build failures where the
destination directory doesn't exist yet for the two rules compiling C
files. To fix that, adjust these Makefile rules to depend on the rule
that creates the destination directory.

  • [x] checked parallel build after removing the build directory works on
    a few systems

Reviewed by @vasslitvinov - thanks!

Modified Files:
M compiler/next/lib/util/Makefile

Compare: https://github.com/chapel-lang/chapel/compare/607ff034e333...7dd8130bad8e