mozilla

Revision 148397 of DIRS

  • Revision slug: DIRS
  • Revision title: DIRS
  • Revision id: 148397
  • Created:
  • Creator: Jimb
  • Is current revision? No
  • Comment Add contributions to DIRS from TIERS.

Revision Content

The DIRS makefile variable contains a list of subdirectories to recursively build in. Many of the standard targets provided by {{template.Source("config/rules.mk")}} iterate over the directories listed in DIRS.

Set By

Tree makefiles may set DIRS after including {{template.Source("config/autoconf.mk")}} but before including {{template.Source("config/config.mk")}} or {{template.Source("config/rules.mk")}}.

If a makefile sets the TIERS variable, then {{template.Source("config/rules.mk")}} will add the directories listed in the tier_tiername_dirs variables to DIRS automatically.

Example

{{template.Source("toolkit/Makefile.in")}}
DIRS	= \
          content \
          locales \
          obsolete \
          profile \
          themes \
          $(NULL)

ifndef MINIMO
DIRS += \
        xre \
        mozapps \
        $(NULL)
endif

Revision Source

<p>The <code>DIRS</code> makefile variable contains a list of subdirectories to recursively build in.  Many of the standard targets provided by {{template.Source("config/rules.mk")}} iterate over the directories listed in <code>DIRS</code>.
</p>
<h3 name="Set_By"> Set By </h3>
<p>Tree makefiles may set <code>DIRS</code> after including {{template.Source("config/autoconf.mk")}} but before including {{template.Source("config/config.mk")}} or {{template.Source("config/rules.mk")}}.
</p><p>If a makefile sets the <code>TIERS</code> variable, then {{template.Source("config/rules.mk")}} will add the directories listed in the <code>tier_<i>tiername</i>_dirs</code> variables to <code>DIRS</code> automatically.
</p>
<h3 name="Example"> Example </h3>
<table class="standard-table">
<tbody><tr>
<td>{{template.Source("toolkit/Makefile.in")}}</td>
<td><pre>
DIRS	= \
          content \
          locales \
          obsolete \
          profile \
          themes \
          $(NULL)

ifndef MINIMO
DIRS += \
        xre \
        mozapps \
        $(NULL)
endif
</pre>
</td>
</tr>
</tbody></table>
Revert to this revision