forked from emutos/emutos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.mk
51 lines (46 loc) · 1.23 KB
/
version.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# version.mk - Makefile fragment for version numbers
#
# Copyright (C) 2017-2020 The EmuTOS development team.
#
# Authors:
# VRI Vincent Rivière
# RFB Roger Burrows
#
# This file is distributed under the GPL, version 2 or at your
# option any later version. See doc/license.txt for details.
#
#
# EmuTOS and EmuCON2 version management
#
#
# the following values are stored in the EmuTOS 'extended os header',
# and are used to create the VERSION string for official releases.
#
MAJOR_VERSION = 1
MINOR_VERSION = 1
FIX_VERSION = 1
empty =
space = $(empty) $(empty)
ifeq ($(FIX_VERSION),0)
tempversion = $(MAJOR_VERSION) $(MINOR_VERSION)
else
tempversion = $(MAJOR_VERSION) $(MINOR_VERSION) $(FIX_VERSION)
endif
#
# this is the version string displayed on the welcome screen, and in
# EmuDesk's 'About' dialog. in binaries generated by GitHub, it is
# overridden by a string containing date and commit id.
#
#VERSION = $(subst $(space),.,$(tempversion))
VERSION = $(shell date +%Y%m%d)
#
# this is stored in the EmuTOS 'extended os header'. a zero value
# indicates an official release; a non-zero value indicates any other
# kind of release (snapshot or custom).
#
ifeq ($(findstring .,$(VERSION)),.)
UNOFFICIAL = 0
else
UNOFFICIAL = 1
endif