Skip to content

Commit

Permalink
modify Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang authored Oct 4, 2024
1 parent dd5d36c commit 0265fa2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ JULIA:=julia

default: help

docs:
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
${JULIA} --project=docs docs/make.jl

format:
${JULIA} -e 'using JuliaFormatter; format(".")'

test:
${JULIA} --project -e 'using Pkg; Pkg.resolve(); Pkg.test()'

docs:
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
${JULIA} --project=docs docs/make.jl

all: format test docs

help:
@echo "The following make commands are available:"
@echo " - make docs: instantiate and build the documentation"
@echo " - make format: format codes with JuliaFormatter"
@echo " - make test: run the tests"
@echo " - make docs: instantiate and build the documentation"
@echo " - make all: run every commands in the above order"

.PHONY: default docs format test help
.PHONY: default format test docs all help

0 comments on commit 0265fa2

Please sign in to comment.