This repository was archived by the owner on May 15, 2020. It is now read-only.
forked from pydata/bottleneck
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.34 KB
/
Makefile
File metadata and controls
53 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Bottleneck Makefile
PYTHON=python
srcdir := bottlechest/src
help:
@echo "Available tasks:"
@echo "help --> This help page"
@echo "pyx --> Create Cython pyx files from templates"
@echo "cfiles --> Convert pyx files to C files"
@echo "build --> Build the Cython extension modules"
@echo "clean --> Remove all the build files for a fresh start"
@echo "test --> Run unit tests"
@echo "all --> clean, pyx, build, test"
@echo "bench --> Run performance benchmark"
@echo "sdist --> Make source distribution"
all: clean pyx cfiles build test
pyx:
${PYTHON} -c "from bottlechest.src.makepyx import makepyx; makepyx()"
cfiles:
cython ${srcdir}/func/32bit/*.pyx
cython ${srcdir}/func/64bit/*.pyx
build: funcs
funcs:
rm -rf ${srcdir}/../*.so
${PYTHON} ${srcdir}/func/setup.py build_ext --inplace
test:
${PYTHON} -c "import bottlechest;bottlechest.test()"
bench:
${PYTHON} -c "import bottlechest; bottlechest.bench()"
sdist: pyx cfiles
rm -f MANIFEST
git status
find -name *.c
${PYTHON} setup.py sdist
# Phony targets for cleanup and similar uses
.PHONY: clean
clean:
rm -rf ${srcdir}/*~ ${srcdir}/*.so ${srcdir}/*.c ${srcdir}/*.o ${srcdir}/*.html ${srcdir}/build ${srcdir}/../*.so ${srcdir}/../*.pyd
rm -rf ${srcdir}/func/32bit/*.c ${srcdir}/func/64bit/*.c
rm -rf ${srcdir}/func/32bit/*.pyx ${srcdir}/func/64bit/*.pyx