1#
2# This Source Code Form is subject to the terms of the Mozilla Public
3# License, v. 2.0. If a copy of the MPL was not distributed with this
4# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
6#######################################################################
7# Build master "Core Components" release version directory name       #
8#######################################################################
9
10#
11# Always set CURRENT_VERSION_SYMLINK to the <current> symbolic link.
12#
13
14CURRENT_VERSION_SYMLINK = current
15
16
17#
18#  For the sake of backwards compatibility (*sigh*) ...
19#
20
21ifndef VERSION
22    ifdef BUILD_NUM
23	VERSION = $(BUILD_NUM)
24    endif
25endif
26
27ifndef RELEASE_VERSION
28    ifdef BUILD_NUM
29	RELEASE_VERSION = $(BUILD_NUM)
30    endif
31endif
32
33#
34# If VERSION has still NOT been set on the command line,
35# as an environment variable, by the individual Makefile, or
36# by the <component>-specific "version.mk" file, set VERSION equal
37# to $(CURRENT_VERSION_SYMLINK).
38
39ifndef VERSION
40    VERSION = $(CURRENT_VERSION_SYMLINK)
41endif
42
43# If RELEASE_VERSION has still NOT been set on the command line,
44# as an environment variable, by the individual Makefile, or
45# by the <component>-specific "version.mk" file, automatically
46# generate the next available version number via a perl script.
47#
48
49ifndef RELEASE_VERSION
50    RELEASE_VERSION =
51endif
52
53#
54# Set <component>-specific versions for compiliation and linkage.
55#
56
57ifndef JAVA_VERSION
58    JAVA_VERSION = $(CURRENT_VERSION_SYMLINK)
59endif
60
61ifndef NETLIB_VERSION
62    NETLIB_VERSION = $(CURRENT_VERSION_SYMLINK)
63endif
64
65ifndef NSPR_VERSION
66    NSPR_VERSION = $(CURRENT_VERSION_SYMLINK)
67endif
68
69ifndef SECTOOLS_VERSION
70    SECTOOLS_VERSION = $(CURRENT_VERSION_SYMLINK)
71endif
72
73ifndef SECURITY_VERSION
74    SECURITY_VERSION = $(CURRENT_VERSION_SYMLINK)
75endif
76
77MK_VERSION = included
78