Cabal-1.18.1.7: A framework for packaging Haskell software

Portabilityportable
Maintainercabal-devel@haskell.org
Safe HaskellNone

Distribution.Make

Description

This is an alternative build system that delegates everything to the make program. All the commands just end up calling make with appropriate arguments. The intention was to allow preexisting packages that used makefiles to be wrapped into Cabal packages. In practice essentially all such packages were converted over to the "Simple" build system instead. Consequently this module is not used much and it certainly only sees cursory maintenance and no testing. Perhaps at some point we should stop pretending that it works.

Uses the parsed command-line from Distribution.Simple.Setup in order to build Haskell tools using a backend build system based on make. Obviously we assume that there is a configure script, and that after the ConfigCmd has been run, there is a Makefile. Further assumptions:

ConfigCmd
We assume the configure script accepts --with-hc, --with-hc-pkg, --prefix, --bindir, --libdir, --libexecdir, --datadir.
BuildCmd
We assume that the default Makefile target will build everything.
InstallCmd
We assume there is an install target. Note that we assume that this does *not* register the package!
CopyCmd
We assume there is a copy target, and a variable $(destdir). The copy target should probably just invoke make install recursively (e.g. $(MAKE) install prefix=$(destdir)/$(prefix) bindir=$(destdir)/$(bindir). The reason we can't invoke make install directly here is that we don't know the value of $(prefix).
SDistCmd
We assume there is a dist target.
RegisterCmd
We assume there is a register target and a variable $(user).
UnregisterCmd
We assume there is an unregister target.
HaddockCmd
We assume there is a docs or doc target.

Synopsis

Documentation

data License

This datatype indicates the license under which your package is released. It is also wise to add your license to each source file using the license-file field. The AllRightsReserved constructor is not actually a license, but states that you are not giving anyone else a license to use or distribute your work. The comments below are general guidelines. Please read the licenses themselves and consult a lawyer if you are unsure of your rights to release the software.

Constructors

GPL (Maybe Version)

GNU Public License. Source code must accompany alterations.

AGPL (Maybe Version)

GNU Affero General Public License

LGPL (Maybe Version)

Lesser GPL, Less restrictive than GPL, useful for libraries.

BSD3

3-clause BSD license, newer, no advertising clause. Very free license.

BSD4

4-clause BSD license, older, with advertising clause. You almost certainly want to use the BSD3 license instead.

MIT

The MIT license, similar to the BSD3. Very free license.

Apache (Maybe Version)

The Apache License. Version 2.0 is the current version, previous versions are considered historical.

PublicDomain

Holder makes no claim to ownership, least restrictive license.

AllRightsReserved

No rights are granted to others. Undistributable. Most restrictive.

OtherLicense

Some other license.

UnknownLicense String

Not a recognised license. Allows us to deal with future extensions more gracefully.

Instances

Eq License 
Data License 
Read License 
Show License 
Typeable License 
Text License 

data Version

Constructors

Version 

Fields

versionBranch :: [Int]
 
versionTags :: [String]
 

Instances

Eq Version 
Data Version 
Ord Version 
Read Version 
Show Version 
Typeable Version 
Text Version 
NFData Version 

defaultMain :: IO ()

defaultMainArgs :: [String] -> IO ()

defaultMainNoRead :: PackageDescription -> IO ()

Deprecated: it ignores its PackageDescription arg