1
# Simple makefile to quickly access handy build commands for Cython extension
2
# code generation. Note that the actual code to produce the extension lives in
3
# the setup.py file, this Makefile is just meant as a command
4
# convenience/reminder while doing development.
7
@echo "Numpy/Cython tasks. Available tasks:"
8
@echo "ext -> build the Cython extension module."
9
@echo "html -> create annotated HTML from the .pyx sources"
10
@echo "test -> run a simple test demo."
11
@echo "all -> Call ext, html and finally test."
22
numpyx.so: numpyx.pyx numpyx.c
23
python setup.py build_ext --inplace
25
numpyx.pyx.html: numpyx.pyx
27
@echo "Annotated HTML of the C code generated in numpy.pyx.html"
29
# Phony targets for cleanup and similar uses
33
rm -rf *~ *.so *.c *.o *.html build