Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. SCARGOT_REPO ?= ../s-cargot
  2. IVORY_REPO ?= ../ivory
  3. default:
  4. cabal build
  5. create-sandbox:
  6. cabal sandbox init
  7. cabal sandbox add-source $(SCARGOT_REPO)
  8. cabal sandbox add-source $(IVORY_REPO)/ivory-artifact
  9. cabal install --dependencies-only
  10. test: haskell-backend-test
  11. test: ivory-backend-test
  12. test: tower-backend-test
  13. test: rpc-backend-test
  14. haskell-backend-test:
  15. cabal run gidl -- -b haskell \
  16. --debug \
  17. -i tests/example.idl \
  18. -o tests/gidl-haskell-backend-test \
  19. -p gidl-haskell-backend-test \
  20. -n Gidl.Haskell.Test
  21. make -C tests/gidl-haskell-backend-test create-sandbox
  22. make -C tests/gidl-haskell-backend-test
  23. make -C tests/gidl-haskell-backend-test test
  24. haskell-backend-test-clean:
  25. -rm -rf tests/gidl-haskell-backend-test
  26. ivory-backend-test:
  27. cabal run gidl -- -b ivory \
  28. --debug \
  29. -i tests/example.idl \
  30. -o tests/gidl-ivory-backend-test \
  31. -p gidl-ivory-backend-test \
  32. -n Gidl.Ivory.Test
  33. make -C tests/gidl-ivory-backend-test create-sandbox
  34. make -C tests/gidl-ivory-backend-test
  35. make -C tests/gidl-ivory-backend-test test
  36. ivory-backend-test-clean:
  37. -rm -rf tests/gidl-ivory-backend-test
  38. tower-backend-test:
  39. cabal run gidl -- -b tower \
  40. --debug \
  41. -i tests/example.idl \
  42. -o tests/gidl-tower-backend-test \
  43. -p gidl-tower-backend-test \
  44. -n Gidl.Test
  45. make -C tests/gidl-tower-backend-test create-sandbox
  46. make -C tests/gidl-tower-backend-test
  47. make -C tests/gidl-tower-backend-test test
  48. tower-backend-test-clean:
  49. -rm -rf tests/gidl-tower-backend-test
  50. rpc-backend-test:
  51. cabal copy
  52. cabal run gidl -- -b haskell-rpc \
  53. --debug \
  54. -i tests/example.idl \
  55. -o tests/gidl-rpc-backend-test \
  56. -p gidl-rpc-backend-test \
  57. -n Gidl.Test
  58. make -C tests/gidl-rpc-backend-test create-sandbox
  59. make -C tests/gidl-rpc-backend-test
  60. #make -C tests/gidl-rpc-backend-test test
  61. rpc-backend-test-clean:
  62. -rm -rf tests/gidl-ivory-backend-test
  63. clean: ivory-backend-test-clean
  64. clean: tower-backend-test-clean
  65. clean: haskell-backend-test-clean
  66. distclean: clean
  67. -rm -rf dist
  68. clean-sandbox: distclean
  69. -rm -rf .cabal-sandbox
  70. -rm cabal.sandbox.config