diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-16 11:34:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-16 11:34:42 +0200 |
commit | 358aea47891fb8d9a11c01aa8ed0bec32e0d3099 (patch) | |
tree | 52d185839976b95f5f4356d1dfa02dd68c756ff9 /Makefile | |
parent | error handling (diff) | |
download | pylibcoopgamma-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-- | Makefile | 12 |
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 + |