Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (43 loc) · 1.81 KB
/
Copy pathMakefile
File metadata and controls
57 lines (43 loc) · 1.81 KB
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
# nobroker -- one command for everything.
#
# make build -> dist/nobroker.pyz, the whole tool as one runnable file
# make demo -> the end-to-end tour
# make test -> 122 tests, including crash recovery
#
# Every target delegates to make.py, which holds the actual task definitions, so
# the two can never drift. If you do not have `make` -- which is the default on
# Windows -- use make.py directly and nothing changes:
#
# python make.py build
#
# That is deliberate. `make` is a separately installed tool, and this project's
# claim is that you need Python and nothing else. The Makefile exists because
# `make test` is what a reviewer's fingers type; make.py exists because it is
# what actually runs everywhere.
PYTHON ?= python3
.DEFAULT_GOAL := help
.PHONY: help build demo video-demo test test-quick bench bench-md check-deps deps-proof cli clean
help: ## List every task
@$(PYTHON) make.py
build: ## Bundle the tool into one runnable file (dist/nobroker.pyz)
@$(PYTHON) make.py build
demo: ## Run the end-to-end tour (start here)
@$(PYTHON) make.py demo
video-demo: ## Run the paced demo built for screen recording
@$(PYTHON) make.py video-demo
test: ## Run the full test suite, including crash recovery
@$(PYTHON) make.py test
test-quick: ## Run everything except the slow exhaustive-truncation sweep
@$(PYTHON) make.py test-quick
bench: ## Measure throughput on this machine
@$(PYTHON) make.py bench
bench-md: ## Same, as a Markdown table for the README
@$(PYTHON) make.py bench-md
check-deps: ## Fail if anything outside the standard library is imported
@$(PYTHON) make.py check-deps
deps-proof: ## Regenerate deps-proof.txt
@$(PYTHON) make.py deps-proof
cli: ## Show the CLI help
@$(PYTHON) make.py cli
clean: ## Remove caches, scratch queues and build output
@$(PYTHON) make.py clean