-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
79 lines (66 loc) · 2.37 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# Copyright 2016 Michael Sparks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
PYTHON=`which python`
DESTDIR=/
PROJECT=pyxie
VERSION=0.1.26
all:
@echo "make source - Create source package"
@echo "make install - Install on local system (only during development)"
@echo "make deb - Generate a deb package - for local testing"
@echo "make ppadeb - Generate files necessary to trigger build on PPA"
@echo "make use - use the locally generate deb for local testing"
@echo "make purge - uninstall the locally generate deb"
@echo "make clean - Clean up directories"
@echo "make distclean - Like make clean, but also remote dist directory"
@echo "make devlopp - purge, distclean, make deb, use deb"
@echo "make test - run behave and other tests"
@echo "make clean - Get rid of scratch and byte files"
@echo "make test - Run any unit tests"
@echo "make edit - convenience to launch editor for dev"
source:
$(PYTHON) setup.py sdist $(COMPILE)
install:
$(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
deb:
python setup.py sdist
cd dist && py2dsc $(PROJECT)-* && cd deb_dist/$(PROJECT)-$(VERSION) && debuild -uc -us
ppadeb:
python setup.py sdist
cd dist && py2dsc $(PROJECT)-* && cd deb_dist/$(PROJECT)-$(VERSION) && debuild -S && cd .. && dput ppa:sparkslabs/packages $(PROJECT)_*_source.changes
@echo "Clean up dist before uploading to pypi, or it'll contain too much junk"
use:
sudo dpkg -i dist/deb_dist/python3-$(PROJECT)*deb
purge:
sudo apt-get purge python3-$(PROJECT)
clean:
$(PYTHON) setup.py clean
rm -rf build/ MANIFEST
find . -name '*.pyc' -delete
rm -f parser.out parsetab.py
distclean:
$(PYTHON) setup.py clean
rm -rf dist
rm -rf build/ MANIFEST
find . -name '*.pyc' -delete
rm -f parser.out parsetab.py
devloop: purge distclean deb use
echo
test:
PYTHONPATH="." ./bin/pyxie --test run-tests
# behave
edit:
((kate --new -s Pyxie </dev/null >/dev/null 2>/dev/null)&)&