|
| 1 | + |
| 2 | +# Use bash as the shell when executing a rule's recipe. For more details: |
| 3 | +# https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html |
| 4 | +SHELL := bash |
| 5 | + |
| 6 | + |
| 7 | +.PHONY: all all-frontend all-backend |
| 8 | +all: all-frontend all-backend |
| 9 | +all-frontend: |
| 10 | + $(MAKE) --directory frontend all |
| 11 | +all-backend: |
| 12 | + $(MAKE) --directory backend all |
| 13 | + |
| 14 | + |
| 15 | +.PHONY: init init-frontend init-backend |
| 16 | +init: init-frontend init-backend |
| 17 | +init-frontend: |
| 18 | + $(MAKE) --directory frontend init |
| 19 | +init-backend: |
| 20 | + $(MAKE) --directory backend init |
| 21 | + |
| 22 | + |
| 23 | +.PHONY: setup setup-frontend setup-backend |
| 24 | +setup: setup-frontend setup-backend |
| 25 | + pre-commit install |
| 26 | +setup-frontend: |
| 27 | + $(MAKE) --directory frontend setup |
| 28 | +setup-backend: |
| 29 | + $(MAKE) --directory backend setup |
| 30 | + |
| 31 | + |
| 32 | +.PHONY: check check-frontend check-backend |
| 33 | +check: check-frontend check-backend |
| 34 | +check-frontend: |
| 35 | + $(MAKE) --directory frontend check |
| 36 | +check-backend: |
| 37 | + $(MAKE) --directory backend check |
| 38 | + |
| 39 | + |
| 40 | +.PHONY: test test-frontend test-backend |
| 41 | +test: test-frontend test-backend |
| 42 | +test-frontend: |
| 43 | + $(MAKE) --directory frontend test |
| 44 | +test-backend: |
| 45 | + $(MAKE) --directory backend test |
| 46 | + |
| 47 | + |
| 48 | +.PHONY: build build-frontend build-backend build-docker build-docker-frontend build-docker-backend |
| 49 | +build: build-frontend build-backend build-docker |
| 50 | +build-docker: build-docker-frontend build-docker-backend |
| 51 | +build-frontend: |
| 52 | + $(MAKE) --directory frontend build |
| 53 | +build-docker-frontend: |
| 54 | + $(MAKE) --directory frontend build-docker |
| 55 | +build-backend: |
| 56 | + $(MAKE) --directory backend build |
| 57 | +build-docker-backend: |
| 58 | + $(MAKE) --directory backend build-docker |
| 59 | + |
| 60 | + |
| 61 | +.PHONY: docs docs-frontend docs-backend |
| 62 | +docs: docs-frontend docs-backend |
| 63 | +docs-frontend: |
| 64 | + $(MAKE) --directory frontend docs |
| 65 | +docs-backend: |
| 66 | + $(MAKE) --directory frontend docs |
| 67 | + |
| 68 | + |
| 69 | +.PHONY: compose-up compose-down compose-up-develop compose-down-develop |
| 70 | +compose-up: |
| 71 | + docker compose --file infra/docker-compose.yaml up |
| 72 | +compose-down: |
| 73 | + docker compose --file infra/docker-compose.yaml down |
| 74 | +compose-up-develop: |
| 75 | + docker compose --file infra/docker-compose-develop.yaml up |
| 76 | +compose-down-develop: |
| 77 | + docker compose --file infra/docker-compose-develop.yaml down |
| 78 | + |
| 79 | + |
| 80 | +.PHONY: clean clean-frontend clean-backend |
| 81 | +clean: clean-frontend clean-backend |
| 82 | + rm -fr .coverage .mypy_cache/ # These backend/ files are created at the base of the repo. |
| 83 | +clean-frontend: |
| 84 | + $(MAKE) --directory frontend clean |
| 85 | +clean-backend: |
| 86 | + $(MAKE) --directory backend clean |
| 87 | + |
| 88 | + |
| 89 | +.PHONY: nuke nuke-git-hooks nuke-frontend nuke-backend nuke-caches nuke-caches-frontend nuke-caches-backend |
| 90 | +nuke: clean nuke-git-hooks nuke-caches nuke-frontend nuke-backend |
| 91 | +nuke-caches: nuke-caches-frontend nuke-caches-backend |
| 92 | +nuke-git-hooks: |
| 93 | + find .git/hooks/ -type f ! -name '*.sample' -delete |
| 94 | +nuke-caches-frontend: |
| 95 | + $(MAKE) --directory frontend nuke-caches |
| 96 | +nuke-frontend: |
| 97 | + $(MAKE) --directory frontend nuke |
| 98 | +nuke-caches-backend: |
| 99 | + $(MAKE) --directory backend nuke-caches |
| 100 | +nuke-backend: |
| 101 | + $(MAKE) --directory backend nuke |
0 commit comments