aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--[-rwxr-xr-x]Setup.hs1
-rw-r--r--debian/changelog5
3 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7a13a1628..67e227958 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ MANDIR := man
TESTDIR := tests
BUILDDIR := dist
BUILDCONF := .setup-config
-BUILDCMD := ./Setup.hs
+BUILDCMD := ./setup
BUILDVARS := vars
CONFIGURE := configure
@@ -118,9 +118,10 @@ $(WRAPPERS): %: $(SRCDIR)/wrappers/%.in $(SRCDIR)/wrappers/*.sh
@$(generate-shell-script)
.PHONY: configure
-cleanup_files+=$(BUILDDIR) $(BUILDCONF) $(BUILDVARS)
+cleanup_files+=Setup.hi Setup.o $(BUILDCMD) $(BUILDDIR) $(BUILDCONF) $(BUILDVARS)
configure: $(BUILDCONF) templates
$(BUILDCONF): $(CABAL)
+ ghc -package Cabal Setup.hs -o $(BUILDCMD)
$(BUILDCMD) configure --prefix=$(PREFIX)
# Make configuration time settings persistent (definitely a hack).
@echo "PREFIX?=$(PREFIX)" >$(BUILDVARS)
diff --git a/Setup.hs b/Setup.hs
index cd7dc3277..9a994af67 100755..100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,3 +1,2 @@
-#!/usr/bin/env runhaskell
import Distribution.Simple
main = defaultMain
diff --git a/debian/changelog b/debian/changelog
index 0d88fc7d2..d9d3a85b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ pandoc (0.44) unstable; urgency=low
[ Recai Oktaş ]
- * Use ./Setup.hs instead of runhaskell, which, on some platforms (such as
- s390, alpha, m68k), throws the following error:
+ * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
+ command instead of 'runhaskell', which, on some platforms (such as s390,
+ alpha, m68k), throws the following error:
runhaskell Setup.hs configure --prefix=/usr
ghc-6.6.1: not built for interactive use