NSDISTMODE

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

Document Tags and Contributors

Contributors to this page: gps, Waldo, Db48x, Sid0
Last updated by: gps,