examples/glr/nlp/Makefile
raw| 1 | TOP=.. |
| 2 | include ${TOP}/Makefile.defs |
| 3 | |
| 4 | english : English.hs Main.lhs |
| 5 | ${GHC} -cpp -fglasgow-exts -o english --make Main.lhs |
| 6 | |
| 7 | run : english |
| 8 | ./english "the man saw the race with a telescope" |
| 9 | |
| 10 | eof : english |
| 11 | echo testing premature eof |
| 12 | ./english "the man saw a" |
| 13 | |
| 14 | err : english |
| 15 | echo testing syntax error |
| 16 | ./english "the the man saw race" |
| 17 | |
| 18 | test : run eof err |
| 19 | |
| 20 | clean : |
| 21 | rm -rf english English.info English.hs EnglishData.hs *.o *.hi out.daVinci |