Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/.
6 #######################################################################
7 # Build master "Core Components" release version directory name #
8 #######################################################################
10 #
11 # Always set CURRENT_VERSION_SYMLINK to the <current> symbolic link.
12 #
14 CURRENT_VERSION_SYMLINK = current
17 #
18 # For the sake of backwards compatibility (*sigh*) ...
19 #
21 ifndef VERSION
22 ifdef BUILD_NUM
23 VERSION = $(BUILD_NUM)
24 endif
25 endif
27 ifndef RELEASE_VERSION
28 ifdef BUILD_NUM
29 RELEASE_VERSION = $(BUILD_NUM)
30 endif
31 endif
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).
39 ifndef VERSION
40 VERSION = $(CURRENT_VERSION_SYMLINK)
41 endif
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 #
49 ifndef RELEASE_VERSION
50 RELEASE_VERSION =
51 endif
53 #
54 # Set <component>-specific versions for compiliation and linkage.
55 #
57 ifndef JAVA_VERSION
58 JAVA_VERSION = $(CURRENT_VERSION_SYMLINK)
59 endif
61 ifndef NETLIB_VERSION
62 NETLIB_VERSION = $(CURRENT_VERSION_SYMLINK)
63 endif
65 ifndef NSPR_VERSION
66 NSPR_VERSION = $(CURRENT_VERSION_SYMLINK)
67 endif
69 ifndef SECTOOLS_VERSION
70 SECTOOLS_VERSION = $(CURRENT_VERSION_SYMLINK)
71 endif
73 ifndef SECURITY_VERSION
74 SECURITY_VERSION = $(CURRENT_VERSION_SYMLINK)
75 endif
77 MK_VERSION = included