summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: cdb2bf4790151651c8a7920a185191b57c93a22c (plain)
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
PACKAGE = mageiawelcome
VERSION = 2.22
GITPATH = git://git.mageia.org/software/mageiawelcome

TEXT_FILES = Makefile

DIRS = etc usr po qml i18n

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 *~ \#*\#

cleandist: clean
	rm -fr $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.xz

install: version
	make -C po DESTDIR=$(RPM_BUILD_ROOT)/usr install

dir:
	mkdir $(PACKAGE)-$(VERSION)

localcopy: dir
	tar c --exclude=.git $(FILES) | tar x -C $(PACKAGE)-$(VERSION)

tar: localcopy
	tar cvYf $(PACKAGE)-$(VERSION).tar.xz $(PACKAGE)-$(VERSION)
	rm -fr $(PACKAGE)-$(VERSION)

dist: cleandist version dir localcopy tar