diff options
| author | jordi.saludes <jordi.saludes@upc.edu> | 2010-07-16 12:40:41 +0000 |
|---|---|---|
| committer | jordi.saludes <jordi.saludes@upc.edu> | 2010-07-16 12:40:41 +0000 |
| commit | 5b14dd8da59f2da305004ef7b9ab28b21b8f4df8 (patch) | |
| tree | 6d5915cd7ad70b705276772e9f8efb9596b9bcc4 | |
| parent | 9fbf680d1b665102e0ffd206f3028d1640604db2 (diff) | |
Setting Query.pgf as separate dependency in py-bindings.
| -rw-r--r-- | contrib/py-bindings/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile index aa1853596..fb2668ac5 100644 --- a/contrib/py-bindings/Makefile +++ b/contrib/py-bindings/Makefile @@ -9,11 +9,11 @@ conf: ln -s $(cbind)/pgf.h build: gf.so -gf.so: PGFFFI.hs gfmodule.c - gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf +gf.so: PGFFFI.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=PGFFFI' $(debug) -optc '-I$(pythoninc)' -o $@ $^ + -optc '-DMODULE=PGFFFI' $(debug) -optc '-I$(pythoninc)' -o $@ \ + $(filter-out %.pgf, $^) clean: rm -f *.hi *.o rm -f *_stub.* @@ -28,7 +28,11 @@ superclean: PyGF.hs: PyGF.hsc hsc2hs -I$(pythoninc) $< -mtest: PyGF.hs mtest.c +Query.pgf: + gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf + +mtest: PyGF.hs mtest.c Query.pgf ghc $(import) --make -fglasgow-exts -O2 -no-hs-main -c $< ghc -O2 --make -fglasgow-exts -no-hs-main \ - -optc '-DMODULE=PyGF' -optc '-I$(pythoninc)' -o $@ $^
\ No newline at end of file + -optc '-DMODULE=PyGF' -optc '-I$(pythoninc)' -o $@ \ + $(filter-out %.pgf, $^)
\ No newline at end of file |
