Commit ba75d8d3 authored by ijones's avatar ijones
Browse files

cleaned up dist target

parent e4396749
......@@ -13,6 +13,9 @@ GHCPKGFLAGS = -f ~/.ghc-packages
GHCFLAGS += -package-conf ~/.ghc-packages
# the cabal tarball...
all: moduleTest
# build the library itself
......@@ -115,15 +118,23 @@ pushdist: pushall dist
scp /tmp/cabal-code.tgz
# rm -f /tmp/cabal-code.tgz
dist: haddock
darcs dist
mv Cabal.tar.gz /tmp
cd /tmp && tar -zxvf Cabal.tar.gz
mkdir -p /tmp/cabal/doc
cp -r dist/doc/html /tmp/cabal/doc/API
mv Cabal.tar.gz $(CABALBALL)
dist: haddock $(CABALBALL)
rm -rf /tmp/cabal* /tmp/Cabal*
rm -rf $(TMPDISTLOC)
cd $(TMPDISTLOC) && tar -zxvf $(CABALBALL) && mv Cabal cabal
mkdir $(TMPDISTLOC)/cabal/doc
cp -r dist/doc/html $(TMPDISTLOC)/cabal/doc/API
cd ~/usr/doc/haskell/haskell-report/packages && docbook2html -o /tmp/pkg-spec-html pkg-spec.sgml && docbook2pdf pkg-spec.sgml -o /tmp
cp -r /tmp/pkg-spec{-html,.pdf} /tmp/cabal/doc
cp -r /tmp/pkg-spec{-html,.pdf} $(TMPDISTLOC)/cabal/doc
cd /tmp && tar -zcvf cabal-code.tgz cabal
rm -f /tmp/Cabal.tar.gz
rm -rf /tmp/cabal
cd $(TMPDISTLOC) && tar -zcvf /tmp/cabal-code.tgz cabal
# rm -f /tmp/Cabal.tar.gz
# rm -rf /tmp/cabal
......@@ -4,6 +4,8 @@
-= Quirky things about the build system =-
* "make install" as root, then try "ghci -package Cabal" to test it.
* GNUmakefile is the one you're probably interested in. If you see
Makefile, it is probably from the fptools build tree, and it won't
work on its own.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment