aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-16 11:34:42 +0200
committerMattias Andrée <maandree@kth.se>2016-08-16 11:34:42 +0200
commit358aea47891fb8d9a11c01aa8ed0bec32e0d3099 (patch)
tree52d185839976b95f5f4356d1dfa02dd68c756ff9 /Makefile
parenterror handling (diff)
downloadpylibcoopgamma-358aea47891fb8d9a11c01aa8ed0bec32e0d3099.tar.gz
pylibcoopgamma-358aea47891fb8d9a11c01aa8ed0bec32e0d3099.tar.bz2
pylibcoopgamma-358aea47891fb8d9a11c01aa8ed0bec32e0d3099.tar.xz
Corrections to libcoopgamma_native.pyx.gpp
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6d39412
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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
+