JULIA:=julia

default: help

docs-instantiate:
	${JULIA} docs/instantiate.jl

docs: docs-instantiate
	${JULIA} --project=docs docs/make.jl

changelog:
	${JULIA} docs/changelog.jl

themes: docs-instantiate
	${JULIA} --project=docs -e 'using DocumenterTools; DocumenterTools.Themes.compile_native_themes()'

help:
	@echo "The following make commands are available:"
	@echo " - make changelog: update all links in CHANGELOG.md's footer"
	@echo " - make docs: build the documentation"
	@echo " - make test: run the tests"
	@echo " - make themes: compile Documenter's native CSS themes"

.PHONY: default docs-instantiate themes help changelog docs test
