version.mk (1757B)
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 14 CURRENT_VERSION_SYMLINK = current 15 16 17 # 18 # For the sake of backwards compatibility (*sigh*) ... 19 # 20 21 ifndef VERSION 22 ifdef BUILD_NUM 23 VERSION = $(BUILD_NUM) 24 endif 25 endif 26 27 ifndef RELEASE_VERSION 28 ifdef BUILD_NUM 29 RELEASE_VERSION = $(BUILD_NUM) 30 endif 31 endif 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 39 ifndef VERSION 40 VERSION = $(CURRENT_VERSION_SYMLINK) 41 endif 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 49 ifndef RELEASE_VERSION 50 RELEASE_VERSION = 51 endif 52 53 # 54 # Set <component>-specific versions for compiliation and linkage. 55 # 56 57 ifndef NETLIB_VERSION 58 NETLIB_VERSION = $(CURRENT_VERSION_SYMLINK) 59 endif 60 61 ifndef NSPR_VERSION 62 NSPR_VERSION = $(CURRENT_VERSION_SYMLINK) 63 endif 64 65 ifndef SECTOOLS_VERSION 66 SECTOOLS_VERSION = $(CURRENT_VERSION_SYMLINK) 67 endif 68 69 ifndef SECURITY_VERSION 70 SECURITY_VERSION = $(CURRENT_VERSION_SYMLINK) 71 endif 72 73 MK_VERSION = included