git.iko.soy/typeable/pandoc
on master help sign in
Use $(GHC) instead of ghc and make them user configurable through environment

to support unusual ghc installations, for example: GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make git-svn-id: https://pandoc.googlecode.com/svn/trunk@1081 788f1e2b-df1e-0410-8736-df70ead52e1b

commit5b5d9bcd765bc9827c66338d1c257f2d851cd5ab authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 17 Nov 2007, 21:01 (19 years ago) parent09b57fc
1 file changed+3−3
Makefile+3−3
Makefile+3−3
@@ -66,8 +66,8 @@ INSTALL := install -c
6666INSTALL_PROGRAM := $(INSTALL) -m 755
6767INSTALL_DATA := $(INSTALL) -m 644
6868STRIP := strip
69−GHC := ghc
70−GHC_PKG := ghc-pkg
69+GHC ?= ghc
70+GHC_PKG ?= ghc-pkg
7171
7272#-------------------------------------------------------------------------------
7373# Recipes
@@ -120,7 +120,7 @@ $(WRAPPERS): %: $(SRCDIR)/wrappers/%.in $(SRCDIR)/wrappers/*.sh
120120cleanup_files+=Setup.hi Setup.o $(BUILDCMD) $(BUILDVARS)
121121configure: $(BUILDCONF) templates
122122$(BUILDCONF): $(CABAL)
123− ghc -package Cabal Setup.hs -o $(BUILDCMD)
123+ $(GHC) -package Cabal Setup.hs -o $(BUILDCMD)
124124 $(BUILDCMD) configure --prefix=$(PREFIX)
125125 # Make configuration time settings persistent (definitely a hack).
126126 @echo "PREFIX?=$(PREFIX)" >$(BUILDVARS)