-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (32 loc) · 980 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (32 loc) · 980 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
.PHONY: all test clean windows-setup
# One-time (idempotent) bootstrap for building on Windows: installs Go,
# Rust, Julia, make, and a mingw-w64 GCC via winget, then builds zlib and
# a shared cfitsio from source against that toolchain. See windows-setup.sh.
# Run this directly (./windows-setup.sh) on a machine with no `make` yet --
# it's also wired in here for convenience on later reruns.
windows-setup:
bash windows-setup.sh
all:
$(MAKE) -C C
cd 2d/go && go build ./...
cd 2d/rust && cargo build
$(MAKE) -C 2d/julia
cd 3d/go && go build ./...
cd 3d/rust && cargo build
$(MAKE) -C 3d/julia
test: all
$(MAKE) -C C test
cd 2d/go && go test -v ./...
cd 2d/rust && cargo test
$(MAKE) -C 2d/julia test
cd 3d/go && go test -v ./...
cd 3d/rust && cargo test
$(MAKE) -C 3d/julia test
clean:
$(MAKE) -C C clean
cd 2d/go && go clean
cd 2d/rust && cargo clean
$(MAKE) -C 2d/julia clean
cd 3d/go && go clean
cd 3d/rust && cargo clean
$(MAKE) -C 3d/julia clean