Mercurial > repos > public > sbplib_julia
view Makefile @ 1354:150313ed2cae
Merge refactor/grids (missed delete of a note)
Changes from previous merge:
* `EquidistantGrid` is now only a 1D thing.
* Higher dimensions are supported through `TensorGrid`.
* The old behavior of `EquidistantGrid` has been moved to the function `equidistant_grid`.
* Grids embedded in higher dimensions are now supported through tensor products with `ZeroDimGrid`s.
* Vector valued grid functions are now supported and the default element type is `SVector`.
* Grids are now expected to support Julia's indexing and iteration interface.
* `eval_on` can be called with both `f(x,y,...)` and `f(x̄)`.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 20 May 2023 14:19:20 +0200 |
parents | c9e35f1ca269 |
children | c8d6580d9307 |
line wrap: on
line source
JULIA_DEFAULT=julia --startup-file=no JULIA?=$(JULIA_DEFAULT) # Set the default browser WHICH_XDG_OPEN=$(shell which xdg-open) WHICH_OPEN=$(shell which open) BROWSER_DEFAULT = $(if $(WHICH_XDG_OPEN), xdg-open) BROWSER_DEFAULT := $(if $(BROWSER_DEFAULT), $(BROWSER_DEFAULT), open) BROWSER?=$(BROWSER_DEFAULT) help: @echo 'Targets:' @echo ' help - Show this help.' @echo ' docs - Generate docs for webserver deployment.' @echo ' localdocs - Generate docs for local viewing.' @echo ' opendocs - Open documentation in the browser remaking it if necessary.' @echo '' @echo 'Variables:' @echo ' JULIA - Controls which command is used to run julia' @echo ' Default $(JULIA_DEFAULT)' @echo ' BROWSER - Sets the command for how to open html files' @echo ' Default: xdg-open if it exists otherwise open' @echo '' @echo 'Variables can be set on the commandline using the -e flag for make, e.g.' @echo ' make localdocs -e JULIA=path/to/julia' @echo 'or as shell environment variables.' docs: docs/build localdocs: docs/build-local opendocs: localdocs $(BROWSER) docs/build-local/index.html clean: rm -rf docs/build rm -rf docs/build-local .PHONY: help docs localdocs opendocs clean SRC_DIRS = src docs/src SRC_FILES_AND_DIRS = $(foreach dir,$(SRC_DIRS),$(shell find $(dir))) DEP_IGNORE = %/.DS_Store DOCS_DEPENDENCIES = docs/make.jl $(filter-out $(DEP_IGNORE),$(SRC_FILES_AND_DIRS)) docs/build: $(DOCS_DEPENDENCIES) $(JULIA) --project=docs docs/make.jl --build-dir build --prettyurls docs/build-local: $(DOCS_DEPENDENCIES) $(JULIA) --project=docs docs/make.jl --build-dir build-local .PHONY: temp temp: @echo $(SRC_FILES_AND_DIRS)