version.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. # Build master "Core Components" release version directory name #
  7. #######################################################################
  8. #
  9. # Always set CURRENT_VERSION_SYMLINK to the <current> symbolic link.
  10. #
  11. CURRENT_VERSION_SYMLINK = current
  12. #
  13. # For the sake of backwards compatibility (*sigh*) ...
  14. #
  15. ifndef VERSION
  16. ifdef BUILD_NUM
  17. VERSION = $(BUILD_NUM)
  18. endif
  19. endif
  20. ifndef RELEASE_VERSION
  21. ifdef BUILD_NUM
  22. RELEASE_VERSION = $(BUILD_NUM)
  23. endif
  24. endif
  25. #
  26. # If VERSION has still NOT been set on the command line,
  27. # as an environment variable, by the individual Makefile, or
  28. # by the <component>-specific "version.mk" file, set VERSION equal
  29. # to $(CURRENT_VERSION_SYMLINK).
  30. ifndef VERSION
  31. VERSION = $(CURRENT_VERSION_SYMLINK)
  32. endif
  33. # If RELEASE_VERSION has still NOT been set on the command line,
  34. # as an environment variable, by the individual Makefile, or
  35. # by the <component>-specific "version.mk" file, automatically
  36. # generate the next available version number via a perl script.
  37. #
  38. ifndef RELEASE_VERSION
  39. RELEASE_VERSION =
  40. endif
  41. #
  42. # Set <component>-specific versions for compiliation and linkage.
  43. #
  44. ifndef JAVA_VERSION
  45. JAVA_VERSION = $(CURRENT_VERSION_SYMLINK)
  46. endif
  47. ifndef NETLIB_VERSION
  48. NETLIB_VERSION = $(CURRENT_VERSION_SYMLINK)
  49. endif
  50. ifndef NSPR_VERSION
  51. NSPR_VERSION = $(CURRENT_VERSION_SYMLINK)
  52. endif
  53. ifndef SECTOOLS_VERSION
  54. SECTOOLS_VERSION = $(CURRENT_VERSION_SYMLINK)
  55. endif
  56. ifndef SECURITY_VERSION
  57. SECURITY_VERSION = $(CURRENT_VERSION_SYMLINK)
  58. endif
  59. MK_VERSION = included