aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6d394124221987fef5800ab67989db2545dcaaf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
GPP = gpp
CYTHON = cython

all: obj/libcoopgamma_native.c

obj/libcoopgamma_native.pyx: src/libcoopgamma_native.pyx.gpp
	@mkdir -p obj
	$(GPP) -s '$$$$' -i src/libcoopgamma_native.pyx.gpp -o $@

obj/%.c: obj/%.pyx
	if ! $(CYTHON) -3 -v $< ; then rm $@ ; false ; fi