-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 960 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 960 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
JULIA:=julia
default: help
setup:
${JULIA} -e 'import Pkg; Pkg.add(["JuliaFormatter", "Changelog", "LiveServer"])'
format:
${JULIA} -e 'using JuliaFormatter; format(".")'
servedocs:
${JULIA} --project=docs -e 'using LiveServer; LiveServer.servedocs()'
test:
${JULIA} --project -e 'using Pkg; Pkg.update(); Pkg.test()'
docs:
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
${JULIA} --project=docs docs/make.jl
all: setup format test docs
help:
@echo "The following make commands are available:"
@echo " - make setup: install the dependencies for make command"
@echo " - make format: format codes with JuliaFormatter"
@echo " - make test: run the tests"
@echo " - make docs: instantiate and build the documentation"
@echo " - make servedocs: serve the documentation locally"
@echo " - make all: run every commands in the above order"
.PHONY: default setup format test docs servedocs all help