-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
47 lines (39 loc) · 936 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Top-Level Makefile
# Set the shell to bash with printing of all commands (`-x`) and unofficial
# strict mode (`-euo pipefail`).
SHELL := bash -x -euo pipefail
.PHONY: help
help:
@echo "Usage: make <target>"
@echo
@echo "Targets:"
@echo " help This help (default target)"
@echo " deps Install all dependencies"
@echo " format Format source code"
@echo " lint Run lint checks"
@echo " test Run tests"
@echo " ci Install dependencies, run lints and tests"
@echo " docs Generate the documentation"
.PHONY: deps
deps:
$(MAKE) -C backend deps
$(MAKE) -C frontend deps
.PHONY: format
format:
$(MAKE) -C backend format
$(MAKE) -C frontend format
.PHONY: lint
lint:
$(MAKE) -C backend lint
$(MAKE) -C frontend lint
.PHONY: test
test:
$(MAKE) -C backend test
$(MAKE) -C frontend test
.PHONY: ci
ci:
$(MAKE) -C backend ci
$(MAKE) -C frontend ci
.PHONY: docs
docs:
$(MAKE) -C backend docs