poezio/Makefile

40 lines
783 B
Makefile
Raw Permalink Normal View History

2014-03-20 23:50:07 +00:00
TMPDIR=/tmp/
2010-01-31 05:33:54 +00:00
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
2010-07-20 10:21:37 +00:00
find ./ -name "#*#" -delete
rm -rf doc/build/
rm -rf poezio.egg-info
rm -rf dist
rm -rf build
rm -f poezio/*.so
2010-01-31 05:33:54 +00:00
2011-11-08 22:04:37 +00:00
install: all
$(PYTHON) setup.py install --root=$(DESTDIR) --optimize=1
2010-01-31 05:33:54 +00:00
doc:
2013-04-13 20:59:37 +00:00
make -C doc/ html
test:
py.test test/
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)
.PHONY : doc test