-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (45 loc) · 934 Bytes
/
Makefile
File metadata and controls
62 lines (45 loc) · 934 Bytes
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Recipe targets (that aren't files...all of them)
.PHONY : help \
build \
default \
docs-clean \
docs-html \
docs-shell \
down \
scripts-test \
setup \
# Recipes: Default (first is "default")
default: help
##
# Core
#
build:
@docker-compose build --no-cache
help: ## show help
@echo "Usage: make [recipe]\n\nRecipes:"
@grep -h '##' $(MAKEFILE_LIST) | grep -v grep | sed -e 's/\(.*\):.*## \(.*\)/\1| \2/' | tr '|' '\n'
down:
@docker-compose down
setup: submodules
pre-commit install
submodules:
@git submodule update --init --recursive
test: scripts-test-unit
##
# Docs
#
docs-run := docker-compose run docs
docs-build:
@$(docs-run) make html
docs-clean:
@$(docs-run) make clean
docs-shell:
@$(docs-run) bash
##
# Scripts
#
scripts-run-mac:
@./scripts/mac/run.sh
scripts-test-unit: submodules
@# TODO: run in a container?
@DM_PATH_SHUNIT="./scripts/shunit2/shunit2" ./scripts/mac/tests/unit.sh