graphql-engine/server/lib/graphql-parser-hs/Makefile
kodiakhq[bot] c5de79d10c server: merge graphql-parser-hs into the monorepo
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5906
Co-authored-by: José Lorenzo Rodríguez <37621+lorenzo@users.noreply.github.com>
Co-authored-by: Vitali Barozzi <26206141+vitalibarozzi@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
Co-authored-by: jkachmar <8461423+jkachmar@users.noreply.github.com>
Co-authored-by: Antoine Leblanc <1618949+nicuveo@users.noreply.github.com>
Co-authored-by: Solomon <24038+solomon-b@users.noreply.github.com>
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
Co-authored-by: Evie Ciobanu <1017953+eviefp@users.noreply.github.com>
Co-authored-by: Vamshi Surabhi <6562944+0x777@users.noreply.github.com>
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
GitOrigin-RevId: 4864173fd616fbbb2fe3a839d0c5eabd76a2e1f2
2022-09-26 11:23:37 +00:00

92 lines
1.4 KiB
Makefile

PROJECT ?= cabal.project
CABAL = cabal --project=$(PROJECT)
.PHONY: freeze
freeze:
$(CABAL) freeze \
--enable-tests \
--enable-benchmarks
.PHONY: configure
configure:
$(CABAL) configure \
--enable-tests \
--enable-benchmarks
.PHONY: update
update:
$(CABAL) update
.PHONY: build-deps
build-deps:
$(CABAL) build \
--only-dependencies \
--enable-tests \
--enable-benchmarks \
all
.PHONY: build
build:
$(CABAL) build \
--enable-tests \
--enable-benchmarks \
graphql-parser
.PHONY: build-all
build-all:
$(CABAL) build \
--enable-tests \
--enable-benchmarks \
all
.PHONY: test-all
test-all:
$(CABAL) test \
--enable-tests \
--enable-benchmarks \
all
.PHONY: bench-all
bench-all:
$(CABAL) bench \
--enable-tests \
--enable-benchmarks \
all
.PHONY: repl
repl:
$(CABAL) repl \
--repl-option='-fobject-code' \
--repl-option='-O0' \
graphql-parser
.PHONY: ghcid
ghcid:
ghcid --command "\
$(CABAL) repl \
--repl-option='-fobject-code' \
--repl-option='-O0' \
graphql-parser \
"
.PHONY: ghcid-test
ghcid-test:
ghcid \
--command "\
$(CABAL) repl \
--repl-option '-fobject-code' \
--repl-option '-O0' \
graphql-parser-test \
" \
--test ":main"
.PHONY: ghcid-bench
ghcid-bench:
ghcid \
--command "\
$(CABAL) repl \
--repl-option '-fobject-code' \
--repl-option '-O0' \
graphql-parser-bench \
"