• Herbert Valerio Riedel's avatar
    Improve VERSION/GIT_COMMIT_ID handling for sdist · 7dd4c12c
    Herbert Valerio Riedel authored
    This makes `VERSION` updating a bit more robust (the file gets only
    updated if its content would actually change), as well as moving the
    dependency of `VERSION` and `GIT_COMMIT_ID` to the `sdist-ghc-prep`
    target, as that's where it's actually needed.
    This fixes the specialised target `make sdist-ghc` not properly
    creating/updating the `VERSION` and `GIT_COMMIT_ID` files before
    creating the ghc source-dist tarball, as well as avoiding stale
    `VERSION` files.
ghc.mk 50.3 KB