Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
70591573
Commit
70591573
authored
18 years ago
by
Isaac Potoczny-Jones
Browse files
Options
Downloads
Patches
Plain Diff
haddockizing some comments from Make.hs
parent
3b2fb9db
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Distribution/Make.hs
+39
-40
39 additions, 40 deletions
Distribution/Make.hs
with
39 additions
and
40 deletions
Distribution/Make.hs
+
39
−
40
View file @
70591573
...
...
@@ -10,6 +10,45 @@
-- Explanation: Uses the parsed command-line from Distribution.Setup
-- in order to build haskell tools using a backend build system based
-- on Make.
--
-- Basic assumptions
--
-- Obviously we assume that there is a configure script, and that after the
-- ConfigCmd has been run, there is a Makefile.
--
-- ConfigCmd: We assume the configure script accepts:
-- --with-hc
-- --with-hc-pkg
-- --prefix
-- --bindir
-- --libdir
-- --libexecdir
-- --datadir
--
-- BuildCmd: We assume 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, eg.
-- copy :
-- $(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 an 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
--
-- ProgramaticaCmd: We assume there is a \"programatica\" target
{- All rights reserved.
...
...
@@ -63,46 +102,6 @@ import Data.List ( intersperse )
import
System.Cmd
import
System.Exit
{-
Basic assumptions
-----------------
Obviously we assume that there is a configure script, and that after the
ConfigCmd has been run, there is a Makefile.
ConfigCmd: We assume the configure script accepts:
--with-hc
--with-hc-pkg
--prefix
--bindir
--libdir
--libexecdir
--datadir
BuildCmd: We assume 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, eg.
copy :
$(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 an 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
ProgramaticaCmd: We assume there is a "programatica" target
-}
exec
::
String
->
IO
ExitCode
exec
cmd
=
(
putStrLn
$
"-=-= Cabal executing: "
++
cmd
++
"=-=-"
)
>>
system
cmd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment