summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-11-07 16:56:48 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-11-07 16:56:48 -0400
commitc065335d9d9e534c06ea58c25e4bf97223e9d907 (patch)
tree8f3cdde97b85a0979d41d0615396d79bb8be1b3d /Makefile
parent8356307c276a0311a1ca4599a54d43c0fdb7cdbd (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 3d978df16..52f8b3a36 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