2022-07-29 19:21:00 +03:00
|
|
|
# Enable secondary expansion.
|
|
|
|
.SECONDEXPANSION:
|
|
|
|
|
|
|
|
PACKAGE_YAML_FILES = $(wildcard server/lib/*/package.yaml)
|
|
|
|
GENERATED_CABAL_FILES = $(foreach package_file,$(PACKAGE_YAML_FILES),$(wildcard $(dir $(package_file))*.cabal))
|
|
|
|
|
2022-07-04 14:44:15 +03:00
|
|
|
.PHONY: build-all
|
|
|
|
## build-all: build all haskell packages, or "have i broken anything?"
|
2023-02-02 20:31:15 +03:00
|
|
|
build-all: $(GENERATED_CABAL_FILES)
|
|
|
|
cabal build all --enable-tests --enable-benchmarks
|
2023-01-26 17:43:58 +03:00
|
|
|
|
2022-07-04 14:44:15 +03:00
|
|
|
.PHONY: build
|
2022-07-29 19:21:00 +03:00
|
|
|
## build: build non-pro graphql executable
|
|
|
|
build: $(GENERATED_CABAL_FILES)
|
2022-07-04 14:44:15 +03:00
|
|
|
cabal build graphql-engine
|
|
|
|
|
2022-07-29 19:21:00 +03:00
|
|
|
.PHONY: build-tests
|
|
|
|
## build-tests: build non-pro graphql executable tests
|
|
|
|
build-tests: $(GENERATED_CABAL_FILES)
|
2022-12-22 20:08:04 +03:00
|
|
|
cabal build graphql-engine-tests graphql-engine-test-mssql graphql-engine-test-postgres
|
2022-07-04 14:44:15 +03:00
|
|
|
|
2022-07-29 19:21:00 +03:00
|
|
|
.PHONY: build-integration-tests
|
|
|
|
## build-integration-tests: build hspec integration tests
|
|
|
|
build-integration-tests: $(GENERATED_CABAL_FILES)
|
2022-10-04 11:30:09 +03:00
|
|
|
cabal build api-tests
|
2022-07-04 14:44:15 +03:00
|
|
|
|
2022-10-11 03:25:07 +03:00
|
|
|
.PHONY: build-tests-dc-api
|
|
|
|
## build-dc-api-tests: build dc-api agent tests
|
|
|
|
build-tests-dc-api: $(GENERATED_CABAL_FILES)
|
|
|
|
cabal build tests-dc-api
|
|
|
|
|
2022-07-29 19:21:00 +03:00
|
|
|
.PHONY: build-pro
|
|
|
|
## build-pro: build pro graphql executable
|
|
|
|
build-pro: $(GENERATED_CABAL_FILES)
|
2022-07-04 14:44:15 +03:00
|
|
|
cabal build graphql-engine-pro
|
|
|
|
|
2022-07-29 19:21:00 +03:00
|
|
|
.PHONY: build-pro-tests
|
|
|
|
## build-pro-tests: build pro graphql executable tests
|
|
|
|
build-pro-tests: $(GENERATED_CABAL_FILES)
|
2022-07-04 14:44:15 +03:00
|
|
|
cabal build graphql-engine-pro-test
|
|
|
|
|
|
|
|
.PHONY: build-multitenant
|
2022-07-29 19:21:00 +03:00
|
|
|
## build-multitenant: build multitenant graphql executable
|
|
|
|
build-multitenant: $(GENERATED_CABAL_FILES)
|
2022-07-04 14:44:15 +03:00
|
|
|
cabal build graphql-engine-multitenant
|
|
|
|
|
|
|
|
.PHONY: build-multitenant-integration-tests
|
2022-07-29 19:21:00 +03:00
|
|
|
## build-multitenant-integration-tests: build multitenant integration tests
|
|
|
|
build-multitenant-integration-tests: $(GENERATED_CABAL_FILES)
|
2022-07-04 14:44:15 +03:00
|
|
|
cabal build multitenant-integration-test
|
2022-11-29 18:42:10 +03:00
|
|
|
|
|
|
|
.PHONY: build-pro-api-tests
|
|
|
|
## build-pro-api-tests: build pro api-tests
|
|
|
|
build-pro-api-tests:
|
|
|
|
cabal build api-tests-pro
|