Liste des Groupes | Revenir à ca embedded |
>
The way I use recursive makes is /really/ recursive - the main make
(typically split into a few include makefiles for convenience, but only
one real make) handles everything, and it does some of that be calling
/itself/ recursively. It is quite common for me to build multiple
program images from one set of source - perhaps for different variants
of a board, with different features enabled, and so on. So I might use
"make prog=board_a" to build the image for board a, and "make
prog=board_b" for board b. Each build will be done in its own directory
- builds/build_a or builds/build_b. Often I will want to build for both
boards - then I will do "make prog="board_a board_b"" (with a default
setting for the most common images).
Les messages affichés proviennent d'usenet.