wiki:TopMakefile

Version 1 (modified by Nicolas Pouillon, 18 years ago) (diff)

--

Top Makefile creation

This special driver creates a makefile useful for building complete project with one command. TopMakefile may be called only once with all used drivers as parameters.

px = Posix()
ms = MutekS()
caba = Caba()
tlm = Tlm()

[...]

TopMakefile(ms,caba,tlm,px)

Running make in top directory will recurse succesively in subdirectories of all given targets.

Targets

  • Default target is to build project in all directories.
  • Target clean cleans all compiled files but keeps dsx-generated ones
  • Target mrproper deletes all generated files (and directories) TopMakefile knows about

Overrides

You may override variable DIRS for restricting recursion to only some directories.

$ make DIRS=muteks
[...]
$ make DIRS="muteks muteks/caba"
[...]
$