poezio/Makefile
mathieui 057f7ac9f5
Refactor logger.py to make it more testable
Also fixes:
- release the message log mmap when we are done with it
- Write the right character in log lines
2017-11-21 22:40:43 +01:00

39 lines
783 B
Makefile

TMPDIR=/tmp/
PYTHON ?= python3
all: Makefile
$(PYTHON) 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
$(PYTHON) setup.py install --root=$(DESTDIR) --optimize=1
doc:
make -C doc/ html
test:
py.test 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