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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Build Subplot and its documentation and run its tests.
#
# The "install_test" target installs the subplot binary so that
# $(SUBPLOT) refers to it. This lets us run Subplot without invoking
# "cargo run" every time. This means we invoke in a way that's more
# natural and have to jump through fewer hoops. Also the binary can be
# run from Python tests directly.
#
# Set this to build offline: --offline.
OFFLINE =
# Set this to limit the tests run by the Rust test suite or the test
# program generated by Subplot. You can override this on the command
# line: "make TESTS=foo tests subplots"
TESTS =
SUBPLOT_DIR = SUBPLOT =
:
# Check that required tooling is available.
:
# Check shell scripts for common problems.
: # Run clippy and tests for Rust code.
: # Run all tests, both Python and Rust.
: # Install the subplot binary in a place where we run it from. After
# this target has completed, $(SUBPLOT) will expand to the binary we
# will use for tests.
#
# We use "cargo install" to have a known location, rather than trying
# to determine where "cargo build" puts the binary.
: # Generate code from and run Subplots.
: # Build documentation and move built documentation from next to
# subplot to the "docs" directory, so that they can easily be
# published somewhere. This is simpler than building the docs so they
# land in their final location directly.
: : : : :