Makefile: Factor out common build arrangements for hacks.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 20:48:53 +0000 (21:48 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 23:54:08 +0000 (00:54 +0100)
commitbc432a485b7a78bdd62239a18804a3d1f92024f7
treeef4a133945d20afe1ddb27ba7d45ab4cde5b7329
parent619353e7885ef838b8079654823957a2fc3f9f8c
Makefile: Factor out common build arrangements for hacks.

  * Name the `..._SOURCES' variable literally after the hack, so that it
    can be recovered mechanically.

  * Accumulate all of the sources together, into an `ALL_SOURCES' and
    dump that into `DISTFILES', rather than marking them separately for
    distribution.

  * Replace the separate linker rules with a single static-pattern rule.
    This unfortunately needs `.SECONDEXPANSION' to work properly.
Makefile