Mercurial > repos > public > sbplib_julia
comparison Makefile @ 1395:bdcdbd4ea9cd feature/boundary_conditions
Merge with default. Comment out broken tests for boundary_conditions at sat
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Wed, 26 Jul 2023 21:35:50 +0200 |
| parents | e1aefebe4ea2 |
| children |
comparison
equal
deleted
inserted
replaced
| 1217:ea2e8254820a | 1395:bdcdbd4ea9cd |
|---|---|
| 8 BROWSER_DEFAULT := $(if $(BROWSER_DEFAULT), $(BROWSER_DEFAULT), open) | 8 BROWSER_DEFAULT := $(if $(BROWSER_DEFAULT), $(BROWSER_DEFAULT), open) |
| 9 BROWSER?=$(BROWSER_DEFAULT) | 9 BROWSER?=$(BROWSER_DEFAULT) |
| 10 | 10 |
| 11 help: | 11 help: |
| 12 @echo 'Targets:' | 12 @echo 'Targets:' |
| 13 @echo ' help - Show this help.' | 13 @echo ' help - Show this help.' |
| 14 @echo ' docs - Generate docs for webserver deployment.' | 14 @echo ' docs - Generate docs for webserver deployment.' |
| 15 @echo ' localdocs - Generate docs for local viewing.' | 15 @echo ' localdocs - Generate docs for local viewing.' |
| 16 @echo ' opendocs - Open documentation in the browser remaking it if necessary.' | 16 @echo ' opendocs - Open documentation in the browser remaking it if necessary.' |
| 17 @echo ' benchmark - Run benchmark suite.' | |
| 18 @echo ' benchmarkrev - Run benchmark suite for revision REV.' | |
| 19 @echo ' benchmarkcmp - Run benchmark suite comparing TARGET to BASELINE.' | |
| 17 @echo '' | 20 @echo '' |
| 18 @echo 'Variables:' | 21 @echo 'Variables:' |
| 19 @echo ' JULIA - Controls which command is used to run julia' | 22 @echo ' JULIA - Controls which command is used to run julia' |
| 20 @echo ' Default $(JULIA_DEFAULT)' | 23 @echo ' Default $(JULIA_DEFAULT)' |
| 21 @echo ' BROWSER - Sets the command for how to open html files' | 24 @echo ' BROWSER - Sets the command for how to open html files' |
| 22 @echo ' Default: xdg-open if it exists otherwise open' | 25 @echo ' Default: xdg-open if it exists otherwise open' |
| 26 @echo ' REV - Valid Mercurial revision specifier used in benchmarkrev' | |
| 27 @echo ' TARGET - Valid Mercurial revision specifier used in benchmarkcmp' | |
| 28 @echo ' as the target revision' | |
| 29 @echo ' BASELINE - Valid Mercurial revision specifier used in benchmarkcmp' | |
| 30 @echo ' as the baseline revision' | |
| 23 @echo '' | 31 @echo '' |
| 24 @echo 'Variables can be set on the commandline using the -e flag for make, e.g.' | 32 @echo 'Variables can be set on the commandline using the -e flag for make, e.g.' |
| 25 @echo ' make localdocs -e JULIA=path/to/julia' | 33 @echo ' make localdocs -e JULIA=path/to/julia' |
| 26 @echo 'or as shell environment variables.' | 34 @echo 'or as shell environment variables.' |
| 27 | 35 |
| 30 localdocs: docs/build-local | 38 localdocs: docs/build-local |
| 31 | 39 |
| 32 opendocs: localdocs | 40 opendocs: localdocs |
| 33 $(BROWSER) docs/build-local/index.html | 41 $(BROWSER) docs/build-local/index.html |
| 34 | 42 |
| 35 clean: | 43 cleandocs: |
| 36 rm -rf docs/build | 44 rm -rf docs/build |
| 37 rm -rf docs/build-local | 45 rm -rf docs/build-local |
| 38 | 46 |
| 39 .PHONY: help docs localdocs opendocs clean | 47 benchmark: |
| 48 $(JULIA) --project=benchmark benchmark/make.jl | |
| 49 | |
| 50 benchmarkrev: | |
| 51 $(JULIA) --project=benchmark benchmark/make.jl --rev $(REV) | |
| 52 | |
| 53 benchmarkcmp: | |
| 54 $(JULIA) --project=benchmark benchmark/make.jl --cmp $(TARGET) $(BASELINE) | |
| 55 | |
| 56 cleanbenchmark: | |
| 57 rm -rf benchmark/results | |
| 58 rm -f benchmark/tune.json | |
| 59 | |
| 60 clean: cleandocs cleanbenchmark | |
| 61 | |
| 62 .PHONY: help clean docs localdocs opendocs cleandocs benchmark benchmarkrev benchmarkcmp cleanbenchmark | |
| 40 | 63 |
| 41 SRC_DIRS = src docs/src | 64 SRC_DIRS = src docs/src |
| 42 SRC_FILES_AND_DIRS = $(foreach dir,$(SRC_DIRS),$(shell find $(dir))) | 65 SRC_FILES_AND_DIRS = $(foreach dir,$(SRC_DIRS),$(shell find $(dir))) |
| 43 DEP_IGNORE = %/.DS_Store | 66 DEP_IGNORE = %/.DS_Store |
| 44 DOCS_DEPENDENCIES = docs/make.jl $(filter-out $(DEP_IGNORE),$(SRC_FILES_AND_DIRS)) | 67 DOCS_DEPENDENCIES = docs/make.jl $(filter-out $(DEP_IGNORE),$(SRC_FILES_AND_DIRS)) |
| 45 docs/build: $(DOCS_DEPENDENCIES) | 68 docs/build: $(DOCS_DEPENDENCIES) |
| 46 $(JULIA) --project=docs docs/make.jl --build-dir build --prettyurls | 69 $(JULIA) --project=docs docs/make.jl --build-dir build --prettyurls |
| 47 | 70 |
| 48 docs/build-local: $(DOCS_DEPENDENCIES) | 71 docs/build-local: $(DOCS_DEPENDENCIES) |
| 49 $(JULIA) --project=docs docs/make.jl --build-dir build-local | 72 $(JULIA) --project=docs docs/make.jl --build-dir build-local |
| 50 | |
| 51 | |
| 52 .PHONY: temp | |
| 53 temp: | |
| 54 @echo $(SRC_FILES_AND_DIRS) |
