mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
e953efeb40
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7758 Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com> GitOrigin-RevId: 311f6c4a5c629c18a55d75a5d5a74f826078e86d
92 lines
1.4 KiB
Makefile
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 \
|
|
"
|