gnu-make.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1334 9bf0d5a1f0cf
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     1
.. -*- coding: utf-8; -*-
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1301
diff changeset
     2
.. include:: HEADER.rst
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     3
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     4
===========
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     5
 GNU Make.
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     6
===========
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
     7
.. contents::
444
b9c1a39a9284 Fix CR/LF ==> LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 421
diff changeset
     8
1301
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
     9
Make docs.
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    10
==========
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    11
1301
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    12
  http://make.paulandlesley.org/ http://mad-scientist.net/make/
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    13
                Paul D. Smith page about make.
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    14
  http://make.paulandlesley.org/autodep.html
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    15
                Advanced Auto-Dependency Generation
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    16
  http://miller.emu.id.au/pmiller/books/rmch/
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    17
                "Recursive Make Considered Harmful" home page.
1301
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    18
  http://evbergen.home.xs4all.nl/nonrecursive-make.html
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    19
                Implementing non-recursive make.
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    20
  http://www.electric-cloud.com/resources/mrmake.php
55aeffa6c8a5 Make docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1299
diff changeset
    21
                Ask Mr. Make
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    22
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    23
How view list of default make definitions.
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    24
==========================================
444
b9c1a39a9284 Fix CR/LF ==> LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 421
diff changeset
    25
b9c1a39a9284 Fix CR/LF ==> LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 421
diff changeset
    26
  $ make -p -f /dev/null
465
c05098683721 Available build tools.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
    27
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    28
GNU Make Standard Library.
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    29
==========================
495
d2ff426ea714 GNU Make Standard Library.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 465
diff changeset
    30
d2ff426ea714 GNU Make Standard Library.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 465
diff changeset
    31
  http://gmsl.sourceforge.net
d2ff426ea714 GNU Make Standard Library.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 465
diff changeset
    32
                home page
d2ff426ea714 GNU Make Standard Library.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 465
diff changeset
    33
1299
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    34
GNU Make configuration.
ec63524d2b90 Split info about GNU Make and build tools. Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 899
diff changeset
    35
=======================
514
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    36
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    37
Put on top of your Makefile:
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    38
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    39
  # Disable built in pattern rules.
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    40
  MAKEFLAGS += -r
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    41
  # Disable built in variables.
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    42
  MAKEFLAGS += -R
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    43
  # Disable built in suffix rules.
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    44
  .SUFFIXES:
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    45
  # Default target.
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    46
  .DEFAULT_GOAL = all
8d0977618c01 GNU Make configuration.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    47