Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
14670 commits behind, 2 commits ahead of the upstream repository.
  • Takenobu Tani's avatar
    3769e3a8
    Update Wiki URLs to point to GitLab · 3769e3a8
    Takenobu Tani authored and Marge Bot's avatar Marge Bot committed
    This moves all URL references to Trac Wiki to their corresponding
    GitLab counterparts.
    
    This substitution is classified as follows:
    
    1. Automated substitution using sed with Ben's mapping rule [1]
        Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...
        New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...
    
    2. Manual substitution for URLs containing `#` index
        Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...#Zzz
        New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...#zzz
    
    3. Manual substitution for strings starting with `Commentary`
        Old: Commentary/XxxYyy...
        New: commentary/xxx-yyy...
    
    See also !539
    
    [1]: https://gitlab.haskell.org/bgamari/gitlab-migration/blob/master/wiki-mapping.json
    3769e3a8
    History
    Update Wiki URLs to point to GitLab
    Takenobu Tani authored and Marge Bot's avatar Marge Bot committed
    This moves all URL references to Trac Wiki to their corresponding
    GitLab counterparts.
    
    This substitution is classified as follows:
    
    1. Automated substitution using sed with Ben's mapping rule [1]
        Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...
        New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...
    
    2. Manual substitution for URLs containing `#` index
        Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...#Zzz
        New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...#zzz
    
    3. Manual substitution for strings starting with `Commentary`
        Old: Commentary/XxxYyy...
        New: commentary/xxx-yyy...
    
    See also !539
    
    [1]: https://gitlab.haskell.org/bgamari/gitlab-migration/blob/master/wiki-mapping.json
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Quick make guide for GHC

For a "Getting Started" guide, see:

https://gitlab.haskell.org/ghc/ghc/wikis/building/quick-start https://gitlab.haskell.org/ghc/ghc/wikis/building/using https://gitlab.haskell.org/ghc/ghc/wikis/building/standard-targets

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.

  • cd <dir>; make

    Builds everything in the given directory.

  • cd

    ; make help

    Shows the targets available in

  • make install

  • make install-strip

    Installs GHC, libraries and tools under $(prefix). The install-strip variant strips executable files while installing them.

  • make sdist

  • make binary-dist

    Builds a source or binary distribution respectively

  • make show VALUE=<var>

  • make show! VALUE=<var>

    Show the value of make variable . The show! variant works right after ./configure (it skips reading package-data.mk files).

  • 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 "python3 boot", and maintainer-clean restores the tree to the completely clean checked-out state.

Using make in subdirectories

  • make

    Builds everything in this directory (including dependencies elsewhere in the tree, if necessary)

  • make fast

    The same as 'make', but omits some phases and does not recalculate dependencies. Useful for saving time if you are sure the rest of the tree is up to date.

  • make clean

  • make distclean

  • make maintainer-clean

    Clean just this directory

  • make html

  • make pdf

  • make ps

    Make documentation in this directory (if any)

  • make show VALUE=<var>

  • make show! VALUE=<var>

    Show the value of make variable . The show! variant works right after ./configure (it skips reading package-data.mk files).

  • make <file>

    Bring a particular file up to date, e.g. make dist/build/Module.o The name is relative to the current directory