X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/checkpath-python/blobdiff_plain/333870bbf36270a9132707e1cb1aff9fc3ace8ab..ab147f752ccf1e2ed765ed025e3d0c6cc899e05a:/Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e414f7b --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +## Makefile + +PYTHON = python +PYREXC = pyrexc +prefix = /usr/local + +all: setup.py checkpath.c + $(PYTHON) setup.py build + +clean: setup.py + $(PYTHON) setup.py clean + rm -rf build checkpath.c + +checkpath.c: checkpath.pyx + pyrexc -o $@.new checkpath.pyx + mv $@.new $@ + +dist: setup.py checkpath.c + $(PYTHON) setup.py sdist + +install: setup.py checkpath.c + $(PYTHON) setup.py install --prefix $(prefix) + +.PHONY: all clean dist install