forked from fastavro/fastavro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (32 loc) · 812 Bytes
/
Makefile
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
# Makefile for fastavro project
#
# Since we distribute the generated C file for simplicity (and so that end users
# won't need to install cython). You can re-create the C file using this
# Makefile.
ifndef PYTHON
PYTHON=python
endif
%.c: %.pyx
cython $(<D)/$(<F)
c_files = fastavro/_read.c fastavro/_write.c fastavro/_schema.c fastavro/_validation.c fastavro/_logical_writers.c fastavro/_logical_readers.c
all: $(c_files)
clean:
rm -fv $(c_files)
rm -fv fastavro/*.so
rm -fv fastavro/_*.html
fresh: clean all html
tag:
./tag.sh
publish:
./publish.sh
test:
PATH="${PATH}:${HOME}/.local/bin" tox
html:
cython -a fastavro/*.pyx
docs:
pip install -U sphinx sphinx_rtd_theme
cd docs && make html
.PHONY: all clean fresh publish test docs
.PHONY: test-docker
test-docker:
docker build .