forked from matlink/gplaycli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (46 loc) · 1.53 KB
/
Makefile
File metadata and controls
54 lines (46 loc) · 1.53 KB
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
52
53
54
# $Id: Makefile,v 1.6 2015/08/24 22:00:00 Matlink Exp $
#
SHELL := /bin/bash
PYTHON=$(shell which python2)
GIT=$(shell which git)
GPG=$(shell which gpg2)
TWINE=$(shell which twine)
DESTDIR=/
BUILDIR=$(CURDIR)/debian/gplaycli
PROJECT=gplaycli
VERSION=$(shell $(PYTHON) setup.py --version)
GPGID=186BB3CA
PYTEST=$(shell which py.test)
TESTAPK=org.mozilla.firefox
all:
@echo "make source - Create source package"
@echo "make install - Install on local system"
@echo "make builddeb - Generate a deb package"
@echo "make clean - Get rid of scratch and byte files"
source:
$(PYTHON) setup.py sdist $(COMPILE)
sign:
$(GPG) --detach-sign --default-key $(GPGID) -a dist/GPlayCli-$(VERSION).tar.gz
install:
$(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
deb:
$(PYTHON) setup.py --command-packages=stdeb.command sdist_dsc --sign-results bdist_deb
publish: clean source sign
$(TWINE) upload dist/GPlayCli-$(VERSION).tar.gz dist/GPlayCli-$(VERSION).tar.gz.asc
gitpush:
$(GIT) push origin master
$(GIT) push github master
clean:
$(PYTHON) setup.py clean
rm -rf build/ MANIFEST dist GPlayCli.egg-info debian/{gplaycli,python-module-stampdir} debian/gplaycli.{debhelper.log,postinst.debhelper,prerm.debhelper,substvars} *.tar.gz* deb_dist
find . -name '*.pyc' -delete
test:
$(PYTEST) tests/
$(PROJECT) -vd $(TESTAPK)
[ -f $(TESTAPK).apk ]
$(PROJECT) -vd $(TESTAPK) -f download
[ -f download/$(TESTAPK).apk ]
$(PROJECT) -vyu tests
[[ `$(PROJECT) -s firefox -n 44 | wc -l` -eq 45 ]]
$(PROJECT) -s com.yogavpn
$(PROJECT) -s com.yogavpn -n 15