-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
36 lines (28 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
WITHGHC = --with-ghc=$(HOME)/ghc-$(GHC)-build/bin/ghc
CABAL_BINARY = $(HOME)/.cabal/bin/cabal
CABAL = $(CABAL_BINARY) $(WITHGHC)
all: install
.PHONY: init build test install ghc-head ghc-7.6.3
init:
$(CABAL) install --only-dependencies --enable-tests
$(CABAL) configure $(WITHGHC) --enable-tests
build:
$(CABAL) build
test: build
$(CABAL_BINARY) test
install: build test
$(CABAL) install
ghc-head:
wget --quiet -O ghc-head.tar.bz2 'https://dl.dropboxusercontent.com/sh/l24540a7ndwte01/u5QOAwG7DF/dist/ghc-HEAD-x86_64-unknown-linux.tar.bz2?token_hash=AAEx0rlxBnnsubzDOOHPkGE1QNWYK0paVGVX5dIyKHaD8g&dl=1'
tar xjf ghc-head.tar.bz2
mkdir $(HOME)/ghc-head-build
cd ghc-7.7.* && ./configure --prefix=$(HOME)/ghc-head-build
cd ghc-7.7.* && make install
$(HOME)/ghc-head-build/bin/ghc --version
ghc-7.6.3:
wget --quiet -O ghc-7.6.3.tar.bz2 'https://dl.dropboxusercontent.com/sh/l24540a7ndwte01/X11weT9-6q/ghc-7.6.3-x86_64-unknown-linux.tar.bz2?token_hash=AAEx0rlxBnnsubzDOOHPkGE1QNWYK0paVGVX5dIyKHaD8g&dl=1'
tar xjf ghc-7.6.3.tar.bz2
mkdir $(HOME)/ghc-7.6.3-build
cd ghc-7.6.3 && ./configure --prefix=$(HOME)/ghc-7.6.3-build
cd ghc-7.6.3 && make install
$(HOME)/ghc-7.6.3-build/bin/ghc --version