Add build system. Fix import.
[checkpath-python] / Makefile
1 ## Makefile
2
3 PYTHON = python
4 PYREXC = pyrexc
5 prefix = /usr/local
6
7 all: setup.py checkpath.c
8 $(PYTHON) setup.py build
9
10 clean: setup.py
11 $(PYTHON) setup.py clean
12 rm -rf build checkpath.c
13
14 checkpath.c: checkpath.pyx
15 pyrexc -o $@.new checkpath.pyx
16 mv $@.new $@
17
18 dist: setup.py checkpath.c
19 $(PYTHON) setup.py sdist
20
21 install: setup.py checkpath.c
22 $(PYTHON) setup.py install --prefix $(prefix)
23
24 .PHONY: all clean dist install