forked from BrightcoveOS/Diamond
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 1.06 KB
/
Makefile
File metadata and controls
45 lines (35 loc) · 1.06 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
DESTDIR=/
PROJECT=diamond
VERSION=0.2.0
all:
@echo "make watch - Watch and continuously run tests"
@echo "make sdist - Create source package"
@echo "make bdist - Create binary 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"
@echo "make cleanws - Strip trailing whitespaces from files"
watch:
watchr test.watchr
sdist:
python setup.py sdist --prune
bdist:
python setup.py bdist --prune
install:
python setup.py install --root $(DESTDIR)
buildrpm: sdist
python setup.py bdist_rpm \
--post-install=rpm/postinstall \
--pre-uninstall=rpm/preuninstall
builddeb: sdist
mkdir -p build
tar -C build -zxf dist/$(PROJECT)-$(VERSION).tar.gz
(cd build/$(PROJECT)-$(VERSION) && debuild -us -uc)
clean:
python setup.py clean
rm -rf dist build MANIFEST
find . -name '*.pyc' -delete
cleanws:
find . -name '*.py' -exec sed -i '' -e 's/[ \t]*$//' {} \;
.PHONY: source install buildrpm builddeb clean