[commit: Cabal] master: Remove the Makefile and the redundant install instructions (8a8baf9)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:44:26 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/8a8baf9126b0033c61edd1cfc1ed190f43903961
>---------------------------------------------------------------
commit 8a8baf9126b0033c61edd1cfc1ed190f43903961
Author: Duncan Coutts <duncan.coutts at worc.ox.ac.uk>
Date: Thu May 3 19:41:08 2007 +0000
Remove the Makefile and the redundant install instructions
We can now install purely using cabal, no Makefile needed.
The install instrcutions previously said to install the data
file manually, but cabal does that for us now.
>---------------------------------------------------------------
cabal-install/INSTALL | 2 --
cabal-install/Makefile | 48 ------------------------------------------------
2 files changed, 0 insertions(+), 50 deletions(-)
diff --git a/cabal-install/INSTALL b/cabal-install/INSTALL
deleted file mode 100644
index 70c5628..0000000
--- a/cabal-install/INSTALL
+++ /dev/null
@@ -1,2 +0,0 @@
-After building and installing with cabal, copy etc-cabal-install to
-/etc/cabal-install.
diff --git a/cabal-install/Makefile b/cabal-install/Makefile
deleted file mode 100644
index b5ad25b..0000000
--- a/cabal-install/Makefile
+++ /dev/null
@@ -1,48 +0,0 @@
-
-HC=ghc
-GHCFLAGS=--make -package Cabal -Wall -fno-warn-unused-matches -cpp
-PREF=/usr/local
-
-all: setup build
-
-help:
- @echo
- @echo "For a user-install (~/bin/cabal-instal) do:"
- @echo " $$ make install-user"
- @echo
- @echo "For a sistem-wide install do:"
- @echo " $$ make"
- @echo " $$ sudo make install"
- @echo
-
-setup:
- mkdir -p dist/tmp
- $(HC) $(GHCFLAGS) -odir dist/tmp -hidir dist/tmp Setup.lhs -o setup
-
-config: setup
- ./setup configure --ghc --prefix=$(PREF)
-
-build: config
- ./setup build
-
-.PHONY: install
-install:
- ./setup install
- mkdir -p /etc/cabal-install
- cp etc-cabal-install/serv.list /etc/cabal-install/
-
-config-user: setup
- ./setup configure --ghc --prefix=${HOME}
-
-build-user: config-user
- ./setup build
-
-.PHONY: install-user
-install-user: build-user
- ./setup install
- mkdir -p ${HOME}/.cabal-install
- cp etc-cabal-install/serv.list ${HOME}/.cabal-install/
-
-clean:
- rm -rf *.o *.hi setup cabal-install dist/
-
More information about the Cvs-libraries
mailing list