summaryrefslogtreecommitdiff
path: root/distrib/MacFrameworks/Makefile
diff options
context:
space:
mode:
authorjudah.jacobson@gmail.com <unknown>2007-12-17 23:57:35 +0000
committerjudah.jacobson@gmail.com <unknown>2007-12-17 23:57:35 +0000
commitb98bec54f4de33f8f60af5c8506b108f676b71ed (patch)
treec9ab105081d59e1eb24677c0797ca35f491f02f3 /distrib/MacFrameworks/Makefile
parent83153fae8bfe23af0bd0bd5a8ea3e2776536a5fe (diff)
downloadhaskell-b98bec54f4de33f8f60af5c8506b108f676b71ed.tar.gz
Make MacFrameworks a subdirectory of distrib, since it isn't used in the normal building process.
Diffstat (limited to 'distrib/MacFrameworks/Makefile')
-rw-r--r--distrib/MacFrameworks/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/distrib/MacFrameworks/Makefile b/distrib/MacFrameworks/Makefile
new file mode 100644
index 0000000000..9ebc118ad0
--- /dev/null
+++ b/distrib/MacFrameworks/Makefile
@@ -0,0 +1,31 @@
+READLINE_DIR = readline-5.2
+GMP_DIR = gmp-4.2.1
+
+all: GMP.framework GNUreadline.framework
+
+$(GMP_DIR).tar.gz:
+ cp ../../gmp/$(GMP_DIR).tar.gz .
+
+$(READLINE_DIR).tar.gz:
+ curl -O ftp://ftp.cwru.edu/pub/bash/$(READLINE_DIR).tar.gz
+
+$(GMP_DIR): $(GMP_DIR).tar.gz
+ tar -xzvf $(GMP_DIR).tar.gz
+
+$(READLINE_DIR): $(READLINE_DIR).tar.gz
+ tar -xzvf $(READLINE_DIR).tar.gz
+
+GMP.framework: $(GMP_DIR)
+ sh build-framework-gmp.sh
+
+GNUreadline.framework: $(READLINE_DIR)
+ sh build-framework-readline.sh
+
+clean:
+ rm -rf $(GMP_DIR) $(READLINE_DIR)
+ rm -rf GMP.framework GNUreadline.framework
+ rm -rf GMP-framework.zip GNUreadline-framework.zip
+
+cleanall: clean
+ rm -f $(GMP_DIR).tar.gz
+ rm -f $(READLINE_DIR).tar.gz