update submodules for GHC.HetMet.GArrow -> Control.GArrow renaming
[ghc-hetmet.git] / distrib / MacFrameworks / Makefile
1 READLINE_DIR = readline-5.2
2 GMP_DIR = gmp-4.2.1
3
4 all: GMP.framework GNUreadline.framework
5
6 $(GMP_DIR).tar.gz:
7         cp ../../gmp/$(GMP_DIR).tar.gz .
8
9 $(READLINE_DIR).tar.gz:
10         curl -O ftp://ftp.cwru.edu/pub/bash/$(READLINE_DIR).tar.gz
11
12 $(GMP_DIR): $(GMP_DIR).tar.gz
13         tar -xzvf $(GMP_DIR).tar.gz
14
15 $(READLINE_DIR): $(READLINE_DIR).tar.gz
16         tar -xzvf $(READLINE_DIR).tar.gz
17
18 GMP.framework: $(GMP_DIR)
19         sh build-framework-gmp.sh
20
21 GNUreadline.framework: $(READLINE_DIR)
22         sh build-framework-readline.sh
23
24 clean: 
25         rm -rf $(GMP_DIR) $(READLINE_DIR)
26         rm -rf  GMP.framework GNUreadline.framework
27         rm -rf  GMP-framework.zip GNUreadline-framework.zip
28
29 cleanall: clean
30         rm -f $(GMP_DIR).tar.gz
31         rm -f $(READLINE_DIR).tar.gz