summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-11-07 16:56:48 -0400
committerJoey Hess <joeyh@joeyh.name>2017-11-07 16:56:48 -0400
commit49663ab6a80063da94ac3bb37092f6e173a6eaff (patch)
tree3154449435f2e12003d9ddc0507f369ff5db54a9 /Makefile
parent1738c801eb79efa1f8070c01a69114868ec50b92 (diff)
Makefile improvement for BUILDER=stack, use stack to run ghc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3d978df160..52f8b3a36a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,11 @@ all=git-annex git-annex-shell mans docs
# set to "./Setup" if you lack a cabal program. Or can be set to "stack"
BUILDER?=cabal
+ifeq ($(BUILDER),stack)
+GHC?=stack ghc --
+else
GHC?=ghc
+endif
PREFIX?=/usr
SHAREDIR?=share