Copyright | Martin Sjögren 2004 |
---|---|
License | BSD3 |
Maintainer | cabal-devel@haskell.org |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 back-end 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)
. Thecopy
target should probably just invokemake install
recursively (e.g.$(MAKE) install prefix=$(destdir)/$(prefix) bindir=$(destdir)/$(bindir)
. The reason we can't invokemake 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
ordoc
target.
Documentation
Instances
Instances
Parsec Version | |
Defined in Distribution.Types.Version | |
Pretty Version | |
Defined in Distribution.Types.Version | |
Structured Version | |
Defined in Distribution.Types.Version structure :: Proxy Version -> Structure structureHash' :: Tagged Version MD5 | |
Data Version | |
Defined in Distribution.Types.Version gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Version -> c Version # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Version # toConstr :: Version -> Constr # dataTypeOf :: Version -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Version) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Version) # gmapT :: (forall b. Data b => b -> b) -> Version -> Version # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Version -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Version -> r # gmapQ :: (forall d. Data d => d -> u) -> Version -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Version -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Version -> m Version # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Version -> m Version # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Version -> m Version # | |
Generic Version | |
Read Version | |
Show Version | |
Binary Version | |
NFData Version | |
Defined in Distribution.Types.Version | |
Eq Version | |
Ord Version | |
type Rep Version | |
Defined in Distribution.Types.Version type Rep Version = D1 ('MetaData "Version" "Distribution.Types.Version" "Cabal-syntax-3.14.1.0-inplace" 'False) (C1 ('MetaCons "PV0" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Word64)) :+: C1 ('MetaCons "PV1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]))) |
defaultMain :: IO () Source #
defaultMainArgs :: [String] -> IO () Source #