Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. SCARGOT_REPO ?= ../s-cargot
  2. IVORY_REPO ?= ../ivory
  3. include Makefile.sandbox
  4. test: haskell-backend-test
  5. test: ivory-backend-test
  6. test: tower-backend-test
  7. test: rpc-backend-test
  8. haskell-backend-test:
  9. cabal run gidl -- -b haskell \
  10. --debug \
  11. -i tests/example.idl \
  12. -o tests/gidl-haskell-backend-test \
  13. -p gidl-haskell-backend-test \
  14. -n Gidl.Haskell.Test
  15. make -C tests/gidl-haskell-backend-test create-sandbox
  16. make -C tests/gidl-haskell-backend-test
  17. make -C tests/gidl-haskell-backend-test test
  18. haskell-backend-test-clean:
  19. -rm -rf tests/gidl-haskell-backend-test
  20. ivory-backend-test:
  21. cabal run gidl -- -b ivory \
  22. --debug \
  23. -i tests/example.idl \
  24. -o tests/gidl-ivory-backend-test \
  25. -p gidl-ivory-backend-test \
  26. -n Gidl.Ivory.Test
  27. make -C tests/gidl-ivory-backend-test create-sandbox
  28. make -C tests/gidl-ivory-backend-test
  29. make -C tests/gidl-ivory-backend-test test
  30. ivory-backend-test-clean:
  31. -rm -rf tests/gidl-ivory-backend-test
  32. tower-backend-test:
  33. cabal run gidl -- -b tower \
  34. --debug \
  35. -i tests/example.idl \
  36. -o tests/gidl-tower-backend-test \
  37. -p gidl-tower-backend-test \
  38. -n Gidl.Test
  39. make -C tests/gidl-tower-backend-test create-sandbox
  40. make -C tests/gidl-tower-backend-test
  41. make -C tests/gidl-tower-backend-test test
  42. tower-backend-test-clean:
  43. -rm -rf tests/gidl-tower-backend-test
  44. rpc-backend-test:
  45. cabal copy
  46. cabal run gidl -- -b haskell-rpc \
  47. --debug \
  48. -i tests/example.idl \
  49. -o tests/gidl-rpc-backend-test \
  50. -p gidl-rpc-backend-test \
  51. -n Gidl.Test
  52. make -C tests/gidl-rpc-backend-test create-sandbox
  53. make -C tests/gidl-rpc-backend-test
  54. #make -C tests/gidl-rpc-backend-test test
  55. rpc-backend-test-clean:
  56. -rm -rf tests/gidl-ivory-backend-test
  57. clean: ivory-backend-test-clean
  58. clean: tower-backend-test-clean
  59. clean: haskell-backend-test-clean