NSDISTMODE

  • Revision slug: NSDISTMODE
  • Revision title: NSDISTMODE
  • Revision id: 76081
  • Created:
  • Creator: Sid0
  • Is current revision? No
  • Comment 4 words added, 8 words removed

Revision Content

NSDISTMODE is a makefile variable which tells the build system how to invoke nsinstall through $(INSTALL) in order to install files into the $(DIST) directory.

Set By

Tree makefiles set NSDISTMODE after including autoconf.mk but before including config.mk or rules.mk.

From Mozilla 8 onwards, you can set NSDISTMODE per-target.

The possible values are 'copy' and 'absolute_symlink'. Any other value causes it to use relative symlinks.

On Windows, the NSDISTMODE directive is completely ignored: $(INSTALL) always copies files.

Example

srcdir		= @srcdir@
VPATH		= @srcdir@

NSDISTMODE = copy

libs:: foo bar baz

foo:
	$(INSTALL) foo dir2 # installed as a copy


# The following instructions work Mozilla 8 onwards
bar: NSDISTMODE=absolute_symlink
bar:
	$(INSTALL) bar dir1 # installed as an absolute symlink

baz: NSDISTMODE=
baz:
	$(INSTALL) baz dir3 # installed as a relative symlink


include $(topsrcdir)/config/config.mk

Revision Source

<p><code>NSDISTMODE</code> is a makefile variable which tells the build system how to invoke <code><a href="/en/Nsinstall" title="en/Nsinstall">nsinstall</a></code> through <code>$(INSTALL)</code> in order to install files into the <code>$(<a href="/en/DIST" title="en/DIST">DIST</a>)</code> directory.</p>
<h3 id="Set_By" name="Set_By">Set By</h3>
<p>Tree makefiles set <code>NSDISTMODE</code> after including <code><a href="/en/Autoconf.mk" title="en/Autoconf.mk">autoconf.mk</a></code> but before including <code><a href="/en/Config.mk" title="en/Config.mk">config.mk</a></code> or <code><a href="/en/Rules.mk" title="en/Rules.mk">rules.mk</a></code>.</p>
<p>From Mozilla 8 onwards, you can set <code>NSDISTMODE</code> <a class=" external" href="http://www.gnu.org/s/hello/manual/make/Target_002dspecific.html" title="http://www.gnu.org/s/hello/manual/make/Target_002dspecific.html">per-target</a>.</p>
<p>The possible values are 'copy' and 'absolute_symlink'. Any other value causes it to use relative symlinks.</p>
<p>On Windows, the <code>NSDISTMODE</code> directive is completely ignored: <code>$(INSTALL)</code> always copies files.</p><h3 id="Example" name="Example">Example</h3>
<pre class="eval">srcdir		= @srcdir@
VPATH		= @srcdir@

NSDISTMODE = copy

libs:: foo bar baz

foo:
	$(INSTALL) foo dir2 # installed as a copy


# The following instructions work Mozilla 8 onwards
bar: NSDISTMODE=absolute_symlink
bar:
	$(INSTALL) bar dir1 # installed as an absolute symlink

baz: NSDISTMODE=
baz:
	$(INSTALL) baz dir3 # installed as a relative symlink


include $(topsrcdir)/config/config.mk
</pre>
Revert to this revision