summaryrefslogtreecommitdiff
path: root/contrib/py-bindings/Makefile
diff options
context:
space:
mode:
authorjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-09-16 07:17:27 +0000
committerjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-09-16 07:17:27 +0000
commitf5461eb3d4eb2605b546a4ed202c12bcdaa1f4e4 (patch)
tree946c9e8542b8e8271b6b529a95c0400fa6613cb4 /contrib/py-bindings/Makefile
parent8e1c6cca407c82fc09569d80c231b8d256735989 (diff)
Remove contribs and examples
Everything has now been moved to a separate repository at https://github.com/GrammaticalFramework/gf-contrib The contents of the examples folder are build during SetupWeb
Diffstat (limited to 'contrib/py-bindings/Makefile')
-rw-r--r--contrib/py-bindings/Makefile37
1 files changed, 0 insertions, 37 deletions
diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile
deleted file mode 100644
index aff4d909f..000000000
--- a/contrib/py-bindings/Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
-src=../../src
-import=-i$(src)/runtime/haskell:$(src)/compiler
-cbind=../c-bindings
-pyversion = $(shell python -c 'import sys; print ".".join(`t` for t in sys.version_info[:2])')
-pythoninc=/usr/include/python$(pyversion)
-debug= #-optc '-DDEBUG=1'
-exdir=../../examples/tutorial/embedded
-
-build: gf.so
-
-test:
- python test.py
-
-gf.so: PyGF.hs gfmodule.c Query.pgf
- ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $<
- ghc -O2 --make -fglasgow-exts -no-hs-main -optl '-shared' \
- -optc '-DMODULE=$(basename $<)' $(debug) -optc '-I$(pythoninc)' -o $@ \
- $(filter-out %.pgf, $^)
-
-
-
-clean:
- rm -f *.hi *.o
- rm -f *_stub.*
- rm -f PyGF.hs
-
-superclean:
- make clean
- rm -f Query.pgf
- rm -f gf.so
- rm -f mtest
-
-PyGF.hs: PyGF.hsc
- hsc2hs -I$(pythoninc) $<
-
-Query.pgf:
- gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf