Permalink
Browse files

Allow some customisation of the Makefile parameters.

  • Loading branch information...
1 parent 700bf12 commit a809916fc5ebdda91ec71103269abfdb92539917 @nominolo committed May 11, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 Makefile
View
9 Makefile
@@ -1,7 +1,12 @@
default: install
+# Create a file config.mk to customise some of these options. This
+# can be useful for example to compile with the HEAD branch of GHC.
+# See config.mk.sample for an example.
+-include config.mk
+
TOP := $(shell pwd)
-DIST = $(HOME)/tmp/dist-devel/scion-0.4/
+DIST ?= dist
HC ?= ghc
RUNHC ?= runghc
@@ -24,7 +29,7 @@ inplace:
.PHONY: install
install:
- cabal -v install --builddir=$(DIST)/cabal
+ cabal -v install --builddir=$(DIST)/cabal --with-compiler=$(HC)
.PHONY: test
test:

0 comments on commit a809916

Please sign in to comment.