forked from awslabs/palace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 686 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
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
CLANG_FORMAT ?= clang-format
JULIA ?= julia
.PHONY: format format-cpp format-jl docs tests
# Style/format
format: format-cpp format-jl
format-cpp:
./scripts/format-source -cpp --clang-format $(CLANG_FORMAT)
format-jl:
./scripts/format-source -jl --julia $(JULIA)
# Documentation
docs:
$(RM) -r docs/build
$(JULIA) --project=docs -e 'using Pkg; Pkg.instantiate()'
$(JULIA) --project=docs --color=yes docs/make.jl
# Tests
tests:
$(JULIA) --project=test/examples -e 'using Pkg; Pkg.instantiate()'
$(JULIA) --project=test/examples --color=yes test/examples/runtests.jl