#-----------------------------------------------------------
# Copyright Christian Arnault LAL-Orsay CNRS
# arnault@lal.in2p3.fr
# See the complete license in cmt_license.txt "http://www.cecill.info". 
#-----------------------------------------------------------


------------------------------------
1) Makefile

  1.1) Makefile.header

    1.1.1) Makefile.core
           tag settings

    1.1.2) cmt check configuration
           clean $(tag).make
           recurse on common_target with targets="first config all"

     or

           cmt check configuration
           recurse on common_target with targets="config <target>"

    1.1.3)
      1.1.3.1) get cmt_lock_pid
      1.1.3.2) cmt build constituents_makefile
            constituents_header
            constituent
            constituent
            constituent
            constituents_trailer
      1.1.3.3) recurse using constituents.make onto targets

------------------------------------
2) constituents.make

   2.1) Makefile.core
        tag settings

   2.2) <first> (only for creating $(tag).make)
     2.2.1) cmt build tag_makefile
            mkdir $(bin)
            cmt show setup

   2.3) <config>
     2.3.1) checkuses

   2.4) <constituent>
     2.4.1) build <constituent>.make
              1) make_header

              2)   |library_header
                   |application_header
                   |document_header

              3)   |library
                   |application

              4) dependency

              5) s
                 s
                 s...

              4) cleanup_header

              5)   |cleanup_library
                   |cleanup_application


     2.4.2) recurse with <constituent>.make on <constituent>

------------------------------------
3) <constituent>.make

   3.1) Makefile.core
        tag settings

   3.2) $(build_dependencies)

   3.3)...

