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