Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jberryman
GHC
Commits
47e182d4
Commit
47e182d4
authored
Jun 15, 2009
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'make help', displaying a list of useful make targets
parent
971ccfbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletion
+61
-1
MAKEHELP
MAKEHELP
+55
-0
Makefile
Makefile
+6
-1
No files found.
MAKEHELP
0 → 100644
View file @
47e182d4
Using the GHC build system
--------------------------
For a "Getting Started" guide, see:
http://hackage.haskell.org/trac/ghc/wiki/Building/Hacking
Common commands:
make
Builds everything: ghc stages 1 and 2, all libraries and tools.
make -j2
Parallel build: runs up to 2 commands at a time (use the number of
CPUs in your machine in place of '2')
cd <dir>; make
Builds everything in the given directory.
cd compiler; make 2
Make just the stage2 compiler, ignoring dependencies. Also "make 1" to
build just the stage1 compiler.
cd libraries; make 1
Build just those libraries that are built by stage1 (omit the "1" to build
all libraries, but that will also update the stage2 compiler).
make install
Installs GHC, libraries and tools under $(prefix)
make sdist
make binary-dist
Builds a source or binary distribution respectively
make show VALUE=<var>
Displays the value of make variable <var>
make clean
make distclean
make maintainer-clean
Various levels of cleaning: "clean" restores the tree to the
state after "./configure", "distclean" restores to the state
after "sh boot", and maintainer-clean restores the tree to the
completely clean checked-out state.
Makefile
View file @
47e182d4
...
...
@@ -32,6 +32,11 @@ else
default
:
all
@
:
# For help, type 'make help'
.PHONY
:
help
help
:
@
cat
MAKEHELP
ifneq
"$(findstring clean,$(MAKECMDGOALS))" ""
-include
mk/config.mk
else
...
...
@@ -44,7 +49,7 @@ endif
include
mk/custom-settings.mk
# No need to update makefiles for these targets:
REALGOALS
=
$(
filter-out
bootstrapping-files framework-pkg clean clean_% distclean maintainer-clean show,
$(MAKECMDGOALS)
)
REALGOALS
=
$(
filter-out
bootstrapping-files framework-pkg clean clean_% distclean maintainer-clean show
help
,
$(MAKECMDGOALS)
)
# NB. not the same as saying '%: ...', which doesn't do the right thing:
# it does nothing if we specify a target that already exists.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment