summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6b9012796d3d7849d6dad157f7db3d0f29406d47 (plain)
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
TMPDIR=/tmp/

all: Makefile
	python3 setup.py build_ext --inplace

clean:
	find ./ -name \*.pyc -delete
	find ./ -name \*.pyo -delete
	find ./ -name \*~ -delete
	find ./ -type d -name __pycache__ -delete
	find ./ -name "#*#" -delete
	rm -rf doc/build/
	rm -rf poezio.egg-info
	rm -rf dist
	rm -rf build
	rm -f poezio/*.so

install: all
	python3 setup.py install --root=$(DESTDIR) --optimize=1

doc:
	make -C doc/ html

test:
	py.test -v test/

release:
	rm -fr $(TMPDIR)/poezio-$(version)
	git clone $(PWD) $(TMPDIR)/poezio-$(version)
	cd $(TMPDIR)/poezio-$(version) && \
	 git checkout v$(version) && \
	 make doc && \
	 cd .. && \
	 tar cJf poezio-$(version).tar.xz poezio-$(version) && \
	 tar czf poezio-$(version).tar.gz poezio-$(version)

.PHONY : doc test