2014-03-20 23:50:07 +00:00
|
|
|
TMPDIR=/tmp/
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2017-11-19 13:10:37 +00:00
|
|
|
PYTHON ?= python3
|
|
|
|
|
2010-07-20 10:07:28 +00:00
|
|
|
all: Makefile
|
2017-11-19 13:10:37 +00:00
|
|
|
$(PYTHON) setup.py build_ext --inplace
|
2010-01-31 15:09:58 +00:00
|
|
|
|
2010-07-20 10:07:28 +00:00
|
|
|
clean:
|
|
|
|
find ./ -name \*.pyc -delete
|
2013-01-06 16:36:14 +00:00
|
|
|
find ./ -name \*.pyo -delete
|
2010-07-20 10:07:28 +00:00
|
|
|
find ./ -name \*~ -delete
|
2015-02-10 16:40:53 +00:00
|
|
|
find ./ -type d -name __pycache__ -delete
|
2010-07-20 10:21:37 +00:00
|
|
|
find ./ -name "#*#" -delete
|
2014-04-09 20:41:01 +00:00
|
|
|
rm -rf doc/build/
|
2015-02-10 16:40:53 +00:00
|
|
|
rm -rf poezio.egg-info
|
|
|
|
rm -rf dist
|
2014-04-09 20:41:01 +00:00
|
|
|
rm -rf build
|
2016-03-31 17:54:41 +00:00
|
|
|
rm -f poezio/*.so
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2011-11-08 22:04:37 +00:00
|
|
|
install: all
|
2017-11-19 13:10:37 +00:00
|
|
|
$(PYTHON) setup.py install --root=$(DESTDIR) --optimize=1
|
2010-01-31 05:33:54 +00:00
|
|
|
|
2011-11-01 22:25:52 +00:00
|
|
|
doc:
|
2013-04-13 20:59:37 +00:00
|
|
|
make -C doc/ html
|
2014-10-27 19:01:22 +00:00
|
|
|
|
|
|
|
test:
|
2017-11-21 20:24:10 +00:00
|
|
|
py.test test/
|
2014-10-27 19:01:22 +00:00
|
|
|
|
2014-03-20 23:50:07 +00:00
|
|
|
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)
|
|
|
|
|
2014-10-27 19:01:22 +00:00
|
|
|
.PHONY : doc test
|