summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-01-21 13:02:04 +0100
committerPapoteur <papoteur@mageia.org>2019-01-21 13:02:04 +0100
commit3b17fa1108321980f6fd82c7deb93fe3794bec5f (patch)
tree9ea7ddbc0c808cb9780357600f9985e2e1ab518a /Makefile
parent58c219ace365c508d8cd1bc6dfc1574428e8a82d (diff)
downloadmageiawelcome-3b17fa1108321980f6fd82c7deb93fe3794bec5f.tar
mageiawelcome-3b17fa1108321980f6fd82c7deb93fe3794bec5f.tar.gz
mageiawelcome-3b17fa1108321980f6fd82c7deb93fe3794bec5f.tar.bz2
mageiawelcome-3b17fa1108321980f6fd82c7deb93fe3794bec5f.tar.xz
mageiawelcome-3b17fa1108321980f6fd82c7deb93fe3794bec5f.zip
Manage version number from Makefile only
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8e43eb0..b266cac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PACKAGE = mageiawelcome
-VERSION = 1.92
+VERSION = 1.93
GITPATH = git://git.mageia.org/software/mageiawelcome
TEXT_FILES = Makefile
@@ -10,7 +10,12 @@ FILES = $(TEXT_FILES) $(DIRS) LICENSE *.pro setup.py
check:
/usr/bin/python3 -m pyflakes qml/*.py
-
+
+version:
+ echo "version='$(VERSION)'" > version.py
+ echo "import QtQuick 2.0" >qml/Version.qml
+ echo "Item { property var version: '$(VERSION)';}" >>qml/Version.qml
+
clean:
rm -f *~ \#*\#
@@ -30,4 +35,4 @@ tar: localcopy
tar cvYf $(PACKAGE)-$(VERSION).tar.xz $(PACKAGE)-$(VERSION)
rm -fr $(PACKAGE)-$(VERSION)
-dist: cleandist dir localcopy tar
+dist: cleandist version dir localcopy tar