summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-07 17:15:58 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-07 17:15:58 -0400
commit2d7ee3978c6131365712727122a574caffc5e0cb (patch)
treedfda1ddea09a14223f8a7109ed98b9dedca7e1bc /Makefile
parent08dcd14a28c7e539ed370585fed1a7aeb3eb4117 (diff)
Avoid using runghc when building the Debian package, as that needs ghci.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d0e658842..7a6d8c0a5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ all=git-annex $(mans) docs
GHC?=ghc
GHCMAKE=$(GHC) $(GHCFLAGS) --make
PREFIX=/usr
-CABAL?=cabal # set to "runghc Setup.hs" if you lack a cabal program
+CABAL?=cabal # set to "./Setup" if you lack a cabal program
# Am I typing :make in vim? Do a fast build.
ifdef VIM
@@ -16,6 +16,7 @@ build-stamp: $(all)
touch $@
Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs
+ if [ "$(CABAL)" = ./Setup ]; then ghc --make Setup; fi
$(CABAL) configure
git-annex: Build/SysConfig.hs
@@ -71,7 +72,8 @@ docs: $(mans)
clean:
rm -rf tmp dist git-annex $(mans) configure *.tix .hpc \
- doc/.ikiwiki html dist tags Build/SysConfig.hs build-stamp
+ doc/.ikiwiki html dist tags Build/SysConfig.hs build-stamp \
+ Setup.hi Setup.o Setup
sdist: clean $(mans)
./Build/make-sdist.sh