forked from sparkslabs/guild
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (46 loc) · 1.35 KB
/
Makefile
File metadata and controls
60 lines (46 loc) · 1.35 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
55
56
57
58
59
60
PYTHON=`which python`
DESTDIR=/
PROJECT=guild
VERSION=1.1.3
all:
@echo "make source - Create source package"
@echo "make install - Install on local system"
@echo "make buildrpm - Generate a rpm package"
@echo "make builddeb - Generate a deb package"
@echo "make clean - Get rid of scratch and byte files"
source:
$(PYTHON) setup.py sdist $(COMPILE)
install:
$(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
buildrpm:
$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
purge:
sudo apt-get purge python-$(PROJECT)
deb:
# debuild -uc -us
rm -rf dist
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"
pypi:
python setup.py sdist upload
use:
cd dist && cd deb_dist/ && sudo dpkg -i python-$(PROJECT)_*
clean:
$(PYTHON) setup.py clean
rm -rf dist
rm -rf build/ MANIFEST
find . -name '*.pyc' -delete
rm -f *~
test:
cd features && behave
distclean:
$(PYTHON) setup.py clean
rm -f *~
rm -rf dist
rm -rf build/ MANIFEST
find . -name '*.pyc' -delete
devloop: purge clean deb use