-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 698 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SHELL := /bin/bash
PYTHON=$(shell which python3)
GPG=$(shell which gpg2)
TWINE=$(PYTHON) -m twine
VERSION=$(shell $(PYTHON) setup.py --version)
GPGID=186BB3CA
source:
$(PYTHON) setup.py sdist
sign:
$(GPG) --detach-sign --default-key $(GPGID) -a dist/gplaycli-$(VERSION).tar.gz
publish: clean source sign
$(TWINE) upload dist/gplaycli-$(VERSION).tar.gz dist/gplaycli-$(VERSION).tar.gz.asc
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 setup.cfg
find . -name '*.pyc' -delete
deb:
mkdir -p packages
bash debian/build.sh