[SR-Dev] git:master: build system: support for multiple modules dirs

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Apr 3 16:31:30 CEST 2009


Module: sip-router
Branch: master
Commit: 27cdfd2c39e28b846c81640c84f00f1e282ab91c
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=27cdfd2c39e28b846c81640c84f00f1e282ab91c

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Mar 27 20:44:36 2009 +0100

build system: support for multiple modules dirs

Multiple modules directories are now supported.
The list of the modules directories is in Makefile.dirs in
 $(modules_dirs).
Name restrictions: the names must not match any makefile variable name
and they shouldn't contain any '-' char.

The modules and modules doc/READMEs will be installed in separate dirs
(e.g. for modules_dirs="modules modules_s modules_k" , the modules
 will be installed in .../lib/ser/modules , ...lib/ser/modules_s
 and ...lib/ser/modules_k).
The module man pages will all be installed in the same man dir
(but so far only some ser modules have man pages so we should be
safe).

New make targets:
every-module          -  make all the modules in all the module dirs
install-every-module  - like above, but install
install-every-module-doc
install-every-module-man

Targets dependent on $(modules_dirs) content:
$(m), $(m)-doc, $(m)-readme, $(m)-man, install-$(m),
install-$(m)-doc,  install-$(m)-man.

E.g.: for modules_dirs=modules modules_k modules_s
make modules - make all modules in the directory "modules".
make modules_k - make all the modules in the directory modules_k.
make every-module - make all the modules in the directories
                     modules, modules_k and modules_s.
make install-modules_s - install all the modules in the directory
                        modules_s.

---

 Makefile         |  315 +++++++++++++++++++++++++++++++++---------------------
 Makefile.defs    |    3 +-
 Makefile.dirs    |   23 ++++
 Makefile.modules |   16 ++--
 Makefile.rules   |   12 +-
 Makefile.sources |    2 +-
 Makefile.targets |   22 +++--
 7 files changed, 251 insertions(+), 142 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=27cdfd2c39e28b846c81640c84f00f1e282ab91c



More information about the sr-dev mailing list