Mercurial > repos > public > sbplib_julia
annotate Makefile @ 843:f4e67a74f923 feature/setup_documenter
Use a variable for the JULIA command to allow changing it
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 14 Jan 2022 10:45:17 +0100 |
parents | 23bce17a59cb |
children | ee0404433fc3 |
rev | line source |
---|---|
843
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
1 JULIA=julia --startup-file=no |
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
2 |
839 | 3 help: |
4 @echo 'Targets:' | |
5 @echo ' help - Show this help.' | |
6 @echo ' docs - Generate docs for webserver deployment.' | |
7 @echo ' localdocs - Generate docs for local viewing.' | |
843
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
8 @echo '' |
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
9 @echo 'Variables:' |
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
10 @echo ' JULIA - Controls which command is used to run julia' |
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
11 @echo '' |
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
12 @echo 'Variables can be set on the commandline using the -e flag for make, e.g.' |
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
13 @echo ' make localdocs -e JULIA=path/to/julia' |
839 | 14 |
15 docs: | |
843
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
16 $(JULIA) --project=docs docs/make.jl --prettyurls |
839 | 17 |
18 localdocs: | |
843
f4e67a74f923
Use a variable for the JULIA command to allow changing it
Jonatan Werpers <jonatan@werpers.com>
parents:
841
diff
changeset
|
19 $(JULIA) --project=docs docs/make.jl |
839 | 20 |
21 clean: | |
22 rm -r docs/build | |
23 | |
24 .PHONY: help docs docs-local clean |