summaryrefslogtreecommitdiff
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
parent08dcd14a28c7e539ed370585fed1a7aeb3eb4117 (diff)
Avoid using runghc when building the Debian package, as that needs ghci.
-rw-r--r--Makefile6
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/rules2
3 files changed, 6 insertions, 3 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
diff --git a/debian/changelog b/debian/changelog
index 57f7223ae..2650ba0ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ git-annex (4.20130406) UNRELEASED; urgency=low
* Adjust preferred content expressions so that content in archive
directories is preferred until it has reached an archive or smallarchive
repository.
+ * Avoid using runghc when building the Debian package, as that needs ghci.
-- Joey Hess <joeyh@debian.org> Sat, 06 Apr 2013 15:24:15 -0400
diff --git a/debian/rules b/debian/rules
index 99bcd6aa0..a0231eb60 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
# Avoid using cabal, as it writes to $HOME
-export CABAL=runghc Setup.hs
+export CABAL=./Setup
%:
dh $@