forked from BrianGallew/cassandra_range_repair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 1.06 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
PACKAGE := rangerepair
.PHONY: clean-pyc clean-build
help:
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "test - run tests quickly with the default Python"
@echo "release - package and upload a release"
clean: clean-build clean-pyc clean-pkg
clean-build:
rm -rf .tox/
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf *.egg
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
clean-pkg:
rm -rf debian/$(PACKAGE)
rm -rf debian/$(PACKAGE).debhelper.log
rm -rf debian/$(PACKAGE).substvars
rm -rf debian/$(PACKAGE).postinst.debhelper
find ../ -maxdepth 1 -iname '$(PACKAGE)_*_amd64.changes' -exec rm -f {} +
find ../ -maxdepth 1 -iname '$(PACKAGE)_*_amd64.deb' -exec rm -f {} +
find ../ -maxdepth 1 -iname '$(PACKAGE)_*.dsc' -exec rm -f {} +
find ../ -maxdepth 1 -iname '$(PACKAGE)_*.tar.gz' -exec rm -f {} +
build: clean
python setup.py build
test:
python setup.py test
rm -f logfile.count
release: clean
python setup.py sdist
debian: clean-pkg
sh make_deb.sh