-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (44 loc) · 1.29 KB
/
Makefile
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
all: clean run
VERSION=0.0.9
clean:
find furikura -type f -name "*.pyc" | xargs rm -rf
find . -type f -name "*.tar.gz" | xargs rm -rf
find furikura -type d -name __pycache__ | xargs rm -rf
rm -rf build/ dist/ deb_dist/ MANIFEST
run:
bin/furikura
test:
python3 -m "nose" --with-coverage --cover-package=furikura
deb:
cp README.md README
python3 setup.py --command-packages=stdeb.command sdist_dsc
cd deb_dist/furi-kura-$(VERSION)/ && dpkg-buildpackage -rfakeroot -uc -us
rpm:
python3 setup.py bdist_rpm
version:
sed -i 's/$(VERSION)/$(V)/g' setup.py Makefile README.md furikura/config.py furikura/ui/about.xml
git add -A && git commit -m "Prepare $(V) release" && git push
release: deb
git tag v$(VERSION) && git push --tags
github-release release \
--user benjamindean \
--repo furi-kura \
--tag v$(VERSION) \
--name $(VERSION)
github-release upload \
--user benjamindean \
--repo furi-kura \
--tag v$(VERSION) \
--name furi-kura-$(VERSION).tar.gz \
--file furi-kura-$(VERSION).tar.gz
github-release upload \
--user benjamindean \
--repo furi-kura \
--tag v$(VERSION) \
--name furi-kura_$(VERSION)-1_all.deb \
--file deb_dist/furi-kura_$(VERSION)-1_all.deb
install:
python3 setup.py install --record uninstall.txt
uninstall:
cat uninstall.txt | xargs rm -rf
rm uninstall.txt