Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
** Wrote Setup wrapper for cabal itself, but it kinda requires a bootstrap makefile. ** added a bunch of targets to the makefile to do the Right Thing
- Loading branch information
1 parent
5138ff5
commit f9271bc
Showing
3 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Cabal home page: | ||
http://www.haskell.org/cabal | ||
|
||
|
||
Quirky things about the build system | ||
|
||
* The Makefile wraps the standard Cabal setup script; the Makefile is | ||
a convinience for bootstrapping the system. "sudo make install" | ||
should handle HUnit, generate the setup script, configure, build, | ||
install, and register it in a standard location. | ||
|
||
* HUnit is included both as a test case for Cabal, and because Cabal | ||
uses HUnit for testing. Don't panic. | ||
|
||
* HUnit also uses the standard setup script interface, and has to get | ||
installed and registered before the build setup of Cabal. The | ||
install target of the Makefile does everything in the right order. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/runhugs | ||
|
||
> module Main where | ||
|
||
> import Distribution.Simple | ||
|
||
> pkg_descr = emptyPackageDescription { | ||
> package = PackageIdentifier "Cabal" (Version [0,1] []), | ||
> allModules = ["Distribution.Package", | ||
> "Distribution.Version", | ||
> "Distribution.Misc", | ||
> "Distribution.Setup", | ||
> "Distribution.InstalledPackageInfo", | ||
> "Distribution.Make", | ||
> | ||
> "Distribution.Simple", | ||
> "Distribution/Simple.Build", | ||
> "Distribution.Simple.Install", | ||
> "Distribution.Simple.SrcDist", | ||
> "Distribution.Simple.Configure", | ||
> "Distribution.Simple.Utils", | ||
> "Distribution.Simple.Register", | ||
> "Distribution.Simple.GHCPackageConfig", | ||
> "Distribution.GetOpt"], | ||
> | ||
> buildDepends = [Dependency "haskell-src" AnyVersion, | ||
> Dependency "HUnit-1.0" AnyVersion | ||
> ] | ||
> } | ||
|
||
> main :: IO () | ||
> main = do defaultMain pkg_descr |