Makefile: Support newer versions of cabal that use the new-build system.
authorJoey Hess <joeyh@joeyh.name>
Thu, 20 Feb 2020 18:09:53 +0000 (14:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 20 Feb 2020 18:13:21 +0000 (14:13 -0400)
commit3d00a8a1dcb0446ea1976f64aea66cf8f1ee4b8e
tree233c85d3430114c3e114fb35f17f7705dc662d40
parent17b3c66a61228d40ff6ca0ba0cbc2eff01ec9656
Makefile: Support newer versions of cabal that use the new-build system.

Unfortunately, cabal puts the binary in a very complicated path
and does not provide any good way to get it out, leaving no good choice
except to use find.

It may be possible to use cabal (new-)install --symlink-bindir,
and ask it to symlink to pwd, but with my older version of cabal,
that does not work.

The stack branch will probably also break once it uses a newer cabal,
didn't try to deal with that.
CHANGELOG
Makefile